aboutsummaryrefslogtreecommitdiff
path: root/herbstluftwm/bar/ws_bar
diff options
context:
space:
mode:
authorVidhu Kant Sharma <bokuwakanojogahoshii@yahoo.com>2020-12-25 20:58:03 +0530
committerVidhu Kant Sharma <bokuwakanojogahoshii@yahoo.com>2020-12-25 20:58:03 +0530
commitb7487a098cc140448a633e763d1e7dd2fd087653 (patch)
treea5721c56fdf06a83775bfdf671733d2df87fe06f /herbstluftwm/bar/ws_bar
parent93657d7a40972e39ea8d059efad608a39b372985 (diff)
moved lemonbar to different folder
Diffstat (limited to 'herbstluftwm/bar/ws_bar')
-rwxr-xr-xherbstluftwm/bar/ws_bar25
1 files changed, 0 insertions, 25 deletions
diff --git a/herbstluftwm/bar/ws_bar b/herbstluftwm/bar/ws_bar
deleted file mode 100755
index f45b316c..00000000
--- a/herbstluftwm/bar/ws_bar
+++ /dev/null
@@ -1,25 +0,0 @@
-#!/bin/python
-
-import datetime
-import time
-import os
-
-def getTags():
- tags = os.popen("herbstclient tag_status").read().split() # get tags in a list
-
- for i in range(len(tags)):
- tag = tags[i]
-
- if tag[0] == ':':
- tags[i] = ' ' + tag[1:-1] + ' ' # format occupied tags
- elif tag[0] == '#':
- tags[i] = '%{F#6c71c4}%{B#d33682}%{F-} ' + tag[1:-1] + '%{F#d33682} %{B#268bd2}%{F-}' # format active tag
- else:
- tags[i] = '%{F#443837} ' + tag[1:-1] + '%{F-} ' # format other tags
-
- return '%{B#6c71c4} ' + ' '.join((str(x) for x in tags)) + '%{B-}' + '%{F#268bd2}%{F-}' # return formatted list in a cleaner form
-
-while True:
- time.sleep(0.3) # be nice to the CPU
- output = getTags()
- os.system("echo '" + output + "'") # for some reason print() messes up everythingt