summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.config/polybar/config##h.lowe7
-rwxr-xr-x.config/polybar/scripts/habit14
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
48modules-left = i3 github 48modules-left = i3 github
49modules-center = xwindow 49modules-center = xwindow
50modules-right = focus date time 50modules-right = habit focus date time
51 51
52tray-position = right 52tray-position = right
53 53
@@ -83,6 +83,11 @@ exec = ~/.config/polybar/scripts/focus
83double-click-left = exec ~/.config/polybar/scripts/stop & 83double-click-left = exec ~/.config/polybar/scripts/stop &
84interval = 1 84interval = 1
85 85
86[module/habit]
87type = custom/script
88exec = ~/.config/polybar/scripts/habit
89interval = 10
90
86[module/spotify] 91[module/spotify]
87type = custom/script 92type = custom/script
88interval = 1 93interval = 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
3RES=" "
4
5if [[ $(dijo --list | grep anki) ]]; then
6 RES="${RES}"
7fi
8
9if [[ $(dijo --list | grep walking) ]]; then
10 RES="${RES} "
11fi
12
13echo "${RES}"
14