diff --git a/polybar/.config/polybar/config b/polybar/.config/polybar/config index 4222ae0..1ba82c4 100644 --- a/polybar/.config/polybar/config +++ b/polybar/.config/polybar/config @@ -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 =