[polybar] Use bib-due date filter

Utilize the date filter option to display upcoming readings until the
end of the week and no further. Needs gnu date utility.
This commit is contained in:
Marty Oehme 2020-05-12 21:43:59 +02:00
parent c0d88e338a
commit b4c8030ce8
No known key found for this signature in database
GPG Key ID: 0CCB0526EFB9611A
2 changed files with 4 additions and 2 deletions

View File

@ -224,9 +224,9 @@ click-right = kill -USR2 %pid%
; display information on remaining papers to read for the upcoming week
[module/papersdue]
type = custom/script
exec = bib-due | wc -l
exec = bib-due -u $(date --date='fri this week' +%Y-%m-%d) | wc -l
exec-if = type bib-due
click-left = exist rofi-bib-due normal && rofi-bib-due
click-left = exist rofi-bib-due normal "opening due papers" && rofi-bib-due -u $(date --date='fri this week' +%Y-%m-%d)
format-foreground = ${colors.primary}
format-prefix = ""
interval = 120

View File

@ -1,4 +1,6 @@
#!/usr/bin/env bash
# force start or restart (all) polybar instances
# if ipc is enabled, can be replaced with `polybar-msg cmd restart`, provided polybar is not stuck
# Terminate already running bar instances
killall -q polybar