[polybar] Show how many items there are in my GTD inbox

This commit is contained in:
Tom Willemse 2022-01-20 21:48:24 -08:00
parent 89b02a5bae
commit fc6b53d4df
2 changed files with 13 additions and 1 deletions

View file

@ -36,7 +36,7 @@ font-2 = siji:pixelsize=10;1
modules-left = ewmh xwindow
modules-center =
modules-right = email pulseaudio xkeyboard vpn date
modules-right = todo email pulseaudio xkeyboard vpn date
tray-position = center
tray-padding = 0
@ -228,3 +228,9 @@ type = custom/script
exec = count-emails
interval = 5
format-prefix = " "
[module/todo]
type = custom/script
exec = inbox-size
interval = 60
format-prefix = " "

6
polybar/usr/bin/inbox-size Executable file
View file

@ -0,0 +1,6 @@
#!/usr/bin/env -S scsh -s
;; # -*- mode: scheme; -*-
!#
(display (run (emacs --quick --batch --visit ~/documents/gtd/inbox.org
--eval "(princ (how-many \"^\\\\* +\"))")))