[polybar] Show how many items there are in my GTD inbox
This commit is contained in:
parent
89b02a5bae
commit
fc6b53d4df
2 changed files with 13 additions and 1 deletions
|
@ -36,7 +36,7 @@ font-2 = siji:pixelsize=10;1
|
||||||
|
|
||||||
modules-left = ewmh xwindow
|
modules-left = ewmh xwindow
|
||||||
modules-center =
|
modules-center =
|
||||||
modules-right = email pulseaudio xkeyboard vpn date
|
modules-right = todo email pulseaudio xkeyboard vpn date
|
||||||
|
|
||||||
tray-position = center
|
tray-position = center
|
||||||
tray-padding = 0
|
tray-padding = 0
|
||||||
|
@ -228,3 +228,9 @@ type = custom/script
|
||||||
exec = count-emails
|
exec = count-emails
|
||||||
interval = 5
|
interval = 5
|
||||||
format-prefix = " "
|
format-prefix = " "
|
||||||
|
|
||||||
|
[module/todo]
|
||||||
|
type = custom/script
|
||||||
|
exec = inbox-size
|
||||||
|
interval = 60
|
||||||
|
format-prefix = " "
|
||||||
|
|
6
polybar/usr/bin/inbox-size
Executable file
6
polybar/usr/bin/inbox-size
Executable 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 \"^\\\\* +\"))")))
|
Loading…
Reference in a new issue