[polybar] Add due papers display

Added simple numerical display for papers that are upcoming and due.
Will display ALL due papers, and not distinguish between soon / at some
point yet. Can not yet be interacted with.
This commit is contained in:
Marty Oehme 2020-05-08 12:31:14 +02:00
parent 4681156a89
commit 552d120856
No known key found for this signature in database
GPG key ID: 0CCB0526EFB9611A

View file

@ -17,10 +17,8 @@
;==========================================================
[colors]
;background = ${xrdb:color0:#222}
background = ${xrdb:background}
background-alt = ${xrdb:color8}
;foreground = ${xrdb:color7:#222}
foreground = ${xrdb:foreground}
foreground-alt = ${xrdb:color3}
primary = ${xrdb:color1}
@ -56,7 +54,7 @@ padding-right = 0
module-margin-left = 2
modules-left = workspaces
modules-center = mprisdisplay date
modules-center = mprisdisplay date papersdue
modules-right = networkspeed archupdates cpu temp backlight volume battery
; do not use offsets for the bar, would only work with override-redirect
; and will mess up tray https://github.com/polybar/polybar/issues/1355
@ -85,7 +83,7 @@ fixed-center = true
; See the Fonts wiki page for more details
font-0 = Comic Neue
font-1 = NotoSans
font-2 = Iosevka:size=18
font-2 = Iosevka:size=18;1
cursor-click = pointer
@ -209,13 +207,23 @@ date-alt = %A, %d %B %Y (W %V)
time-alt = %H:%M
label = %date% %{T2} %{T-}%time%
[module/papersdue]
type = custom/script
exec = $XDG_BIN_HOME/bib_due $BIBFILE | wc -l
exec-if = type $XDG_BIN_HOME/bib_due
format-foreground = ${colors.primary}
format-padding = 2
format-prefix = " "
interval = 2
[module/archupdates]
type = custom/script
exec = $XDG_CONFIG_HOME/polybar/scripts/poly-archupdates
interval = 600
format = <label>
format-foreground = ${colors.primary}
label = %output%
format-padding = 2
format-prefix = " "
; format-foreground = ${colors.primary}
[module/networkspeed]
type = custom/script