diff options
Diffstat (limited to '.config/polybar')
-rw-r--r-- | .config/polybar/config##h.lowe | 7 | ||||
-rwxr-xr-x | .config/polybar/scripts/habit | 14 |
2 files changed, 20 insertions, 1 deletions
diff --git a/.config/polybar/config##h.lowe b/.config/polybar/config##h.lowe index caebed7..a631c77 100644 --- a/.config/polybar/config##h.lowe +++ b/.config/polybar/config##h.lowe | |||
@@ -47,7 +47,7 @@ font-1 = Siji:size=20;1 | |||
47 | 47 | ||
48 | modules-left = i3 github | 48 | modules-left = i3 github |
49 | modules-center = xwindow | 49 | modules-center = xwindow |
50 | modules-right = focus date time | 50 | modules-right = habit focus date time |
51 | 51 | ||
52 | tray-position = right | 52 | tray-position = right |
53 | 53 | ||
@@ -83,6 +83,11 @@ exec = ~/.config/polybar/scripts/focus | |||
83 | double-click-left = exec ~/.config/polybar/scripts/stop & | 83 | double-click-left = exec ~/.config/polybar/scripts/stop & |
84 | interval = 1 | 84 | interval = 1 |
85 | 85 | ||
86 | [module/habit] | ||
87 | type = custom/script | ||
88 | exec = ~/.config/polybar/scripts/habit | ||
89 | interval = 10 | ||
90 | |||
86 | [module/spotify] | 91 | [module/spotify] |
87 | type = custom/script | 92 | type = custom/script |
88 | interval = 1 | 93 | interval = 1 |
diff --git a/.config/polybar/scripts/habit b/.config/polybar/scripts/habit new file mode 100755 index 0000000..e6380c6 --- /dev/null +++ b/.config/polybar/scripts/habit | |||
@@ -0,0 +1,14 @@ | |||
1 | #!/usr/bin/env bash | ||
2 | |||
3 | RES=" " | ||
4 | |||
5 | if [[ $(dijo --list | grep anki) ]]; then | ||
6 | RES="${RES}" | ||
7 | fi | ||
8 | |||
9 | if [[ $(dijo --list | grep walking) ]]; then | ||
10 | RES="${RES} " | ||
11 | fi | ||
12 | |||
13 | echo "${RES}" | ||
14 | |||