summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYigit Sever2021-11-01 18:03:09 +0300
committerYigit Sever2021-11-01 18:03:24 +0300
commit0ee0b219d4f7bd235043d262e41d517f3c5a507e (patch)
tree41ba6091856025dd4fa7c8d73b0dd73028860a90
parent5c8368d57cacd1c26df38b88ea7da9a2d3ad24b1 (diff)
downloaddotfiles-0ee0b219d4f7bd235043d262e41d517f3c5a507e.tar.gz
dotfiles-0ee0b219d4f7bd235043d262e41d517f3c5a507e.tar.bz2
dotfiles-0ee0b219d4f7bd235043d262e41d517f3c5a507e.zip
polybar, lowe: add toread & iss
-rw-r--r--.config/polybar/config##h.lowe15
-rwxr-xr-x.config/polybar/scripts/toread6
2 files changed, 18 insertions, 3 deletions
diff --git a/.config/polybar/config##h.lowe b/.config/polybar/config##h.lowe
index a631c77..8dd08f7 100644
--- a/.config/polybar/config##h.lowe
+++ b/.config/polybar/config##h.lowe
@@ -45,9 +45,9 @@ module-margin = 1
45font-0 = scientifica:antialias=false;1 45font-0 = scientifica:antialias=false;1
46font-1 = Siji:size=20;1 46font-1 = Siji:size=20;1
47 47
48modules-left = i3 github 48modules-left = i3 github iss
49modules-center = xwindow 49modules-center = xwindow
50modules-right = habit focus date time 50modules-right = toread habit focus date time
51 51
52tray-position = right 52tray-position = right
53 53
@@ -76,12 +76,21 @@ format-prefix-padding = 1
76format-offline = <label-offline> 76format-offline = <label-offline>
77label-offline = Github offline 77label-offline = Github offline
78 78
79[module/iss]
80type = custom/script
81exec = /home/yigit/.config/polybar/scripts/space
82interval = 5
83
84[module/toread]
85type = custom/script
86exec = /home/yigit/.config/polybar/scripts/toread
87interval = 5
79 88
80[module/focus] 89[module/focus]
81type = custom/script 90type = custom/script
82exec = ~/.config/polybar/scripts/focus 91exec = ~/.config/polybar/scripts/focus
83double-click-left = exec ~/.config/polybar/scripts/stop & 92double-click-left = exec ~/.config/polybar/scripts/stop &
84interval = 1 93interval = 5
85 94
86[module/habit] 95[module/habit]
87type = custom/script 96type = custom/script
diff --git a/.config/polybar/scripts/toread b/.config/polybar/scripts/toread
new file mode 100755
index 0000000..a8efc41
--- /dev/null
+++ b/.config/polybar/scripts/toread
@@ -0,0 +1,6 @@
1#!/bin/bash
2
3lines=$(buku --nostdin --stag 'toread' -f 10 | wc -l)
4
5# echo "${count} foo"
6echo " $lines"