[polybar] Add minimum priority to due items
Items displayed for being due are at least requiring a level 3 priority (i.e. the lowest; any priority at all). Items without priority will not be counted by polybar.
This commit is contained in:
parent
9b362cae38
commit
37072fee85
2 changed files with 5 additions and 2 deletions
|
|
@ -212,6 +212,7 @@ time-alt = %H:%M
|
||||||
label = %date% %{T2} %{T-}%time%
|
label = %date% %{T2} %{T-}%time%
|
||||||
|
|
||||||
; display information on currently playing track, allows simple track manipulation
|
; 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]
|
[module/music]
|
||||||
type = custom/script
|
type = custom/script
|
||||||
exec = $XDG_CONFIG_HOME/polybar/scripts/poly-mprisdisplay
|
exec = $XDG_CONFIG_HOME/polybar/scripts/poly-mprisdisplay
|
||||||
|
|
@ -219,7 +220,6 @@ exec-if = type $XDG_CONFIG_HOME/polybar/scripts/poly-mprisdisplay
|
||||||
tail = true
|
tail = true
|
||||||
click-left = kill -USR1 %pid%
|
click-left = kill -USR1 %pid%
|
||||||
click-right = kill -USR2 %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
|
; display information on remaining papers to read for the upcoming week
|
||||||
[module/papersdue]
|
[module/papersdue]
|
||||||
|
|
@ -227,7 +227,10 @@ type = custom/script
|
||||||
exec = $XDG_CONFIG_HOME/polybar/scripts/poly-papersdue
|
exec = $XDG_CONFIG_HOME/polybar/scripts/poly-papersdue
|
||||||
exec-if = type bib-due
|
exec-if = type bib-due
|
||||||
tail = true
|
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)
|
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-foreground = ${colors.primary}
|
||||||
format-prefix = " "
|
format-prefix = " "
|
||||||
interval = 120
|
interval = 120
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
while true; do
|
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)"
|
required="$(bib-due -u 'fri this week' -p1 | wc -l)"
|
||||||
|
|
||||||
# add polybar formatting to color required readings red
|
# add polybar formatting to color required readings red
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue