diff --git a/polybar/.config/polybar/config b/polybar/.config/polybar/config index 5175fac..07e331d 100644 --- a/polybar/.config/polybar/config +++ b/polybar/.config/polybar/config @@ -212,6 +212,7 @@ time-alt = %H:%M label = %date% %{T2} %{T-}%time% ; display information on currently playing track, allows simple track manipulation +; TODO: add album art display (on click?) - retrieved by playerctl metadata mpris:artUrl [module/music] type = custom/script exec = $XDG_CONFIG_HOME/polybar/scripts/poly-mprisdisplay @@ -219,7 +220,6 @@ exec-if = type $XDG_CONFIG_HOME/polybar/scripts/poly-mprisdisplay tail = true click-left = kill -USR1 %pid% click-right = kill -USR2 %pid% -; TODO: add album art display (on click?) - retrieved by playerctl metadata mpris:artUrl ; display information on remaining papers to read for the upcoming week [module/papersdue] @@ -227,7 +227,10 @@ type = custom/script exec = $XDG_CONFIG_HOME/polybar/scripts/poly-papersdue exec-if = type bib-due tail = true +; show list with high prio click-left = exist rofi-bib-due normal "opening due papers" && rofi-bib-due -p1 -u $(date --date='fri this week' +%Y-%m-%d) +; show list with all +click-right = exist rofi-bib-due normal "opening due papers" && rofi-bib-due -p3 -u $(date --date='fri this week' +%Y-%m-%d) ; format-foreground = ${colors.primary} format-prefix = " " interval = 120 diff --git a/polybar/.config/polybar/scripts/poly-papersdue b/polybar/.config/polybar/scripts/poly-papersdue index e1cbc85..7eb1084 100755 --- a/polybar/.config/polybar/scripts/poly-papersdue +++ b/polybar/.config/polybar/scripts/poly-papersdue @@ -1,7 +1,7 @@ #!/usr/bin/env sh while true; do - all="$(bib-due -u 'fri this week' | wc -l)" + all="$(bib-due -u 'fri this week' -p3 | wc -l)" required="$(bib-due -u 'fri this week' -p1 | wc -l)" # add polybar formatting to color required readings red