From 0ee0b219d4f7bd235043d262e41d517f3c5a507e Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Mon, 1 Nov 2021 18:03:09 +0300 Subject: polybar, lowe: add toread & iss --- .config/polybar/config##h.lowe | 15 ++++++++++++--- .config/polybar/scripts/toread | 6 ++++++ 2 files changed, 18 insertions(+), 3 deletions(-) create mode 100755 .config/polybar/scripts/toread 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 font-0 = scientifica:antialias=false;1 font-1 = Siji:size=20;1 -modules-left = i3 github +modules-left = i3 github iss modules-center = xwindow -modules-right = habit focus date time +modules-right = toread habit focus date time tray-position = right @@ -76,12 +76,21 @@ format-prefix-padding = 1 format-offline = label-offline = Github offline +[module/iss] +type = custom/script +exec = /home/yigit/.config/polybar/scripts/space +interval = 5 + +[module/toread] +type = custom/script +exec = /home/yigit/.config/polybar/scripts/toread +interval = 5 [module/focus] type = custom/script exec = ~/.config/polybar/scripts/focus double-click-left = exec ~/.config/polybar/scripts/stop & -interval = 1 +interval = 5 [module/habit] type = 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 @@ +#!/bin/bash + +lines=$(buku --nostdin --stag 'toread' -f 10 | wc -l) + +# echo "${count} foo" +echo " $lines" -- cgit v1.2.3-70-g09d2