Polybar: Re-add Arch update module

It was just too useful to leave out
This commit is contained in:
Salt 2018-01-17 13:14:20 -06:00
parent fc423ecb59
commit 5c21608034

View File

@ -71,7 +71,7 @@ font-4 = ${res/fonts.font-4}
inherit = template/bar
tray-position = right
modules-left = i3 cpu memory
modules-left = i3 cpu memory update-arch
modules-center = xwindow
modules-right = xbacklight volume battery wlan date
@ -210,6 +210,19 @@ label = %percentage_used%%
label-padding = 2
label-background = ${res/colors.background}
[module/update-arch]
type = custom/script
exec = echo `checkupdates | wc -l`
exec-if = wget -q --spider http://www.startpage.com/ && uname -r | grep -q "ARCH" && [ `checkupdates | wc -l` != 0 ]
format-prefix = 
format-prefix-padding = 2
format-prefix-foreground = ${res/colors.background}
format-prefix-background = ${res/colors.alert}
interval = 60
label-padding = 2
label-background = ${res/colors.background}
[module/volume]
type = internal/volume
format-volume = <label-volume>