Polybar: Add dpkg lock indicator
This commit is contained in:
parent
8c0ca0a414
commit
79d710f064
@ -25,6 +25,8 @@ icon-network = ${xrdb:color14}
|
|||||||
icon-wm = ${xrdb:color12}
|
icon-wm = ${xrdb:color12}
|
||||||
icon-xbacklight = ${res/colors.primary}
|
icon-xbacklight = ${res/colors.primary}
|
||||||
|
|
||||||
|
notif-package = ${self.foreground-dark}
|
||||||
|
|
||||||
background = ${xrdb:background}
|
background = ${xrdb:background}
|
||||||
background-alt = ${xrdb:color8}
|
background-alt = ${xrdb:color8}
|
||||||
foreground = ${xrdb:color15}
|
foreground = ${xrdb:color15}
|
||||||
@ -86,7 +88,7 @@ inherit = template/bar
|
|||||||
|
|
||||||
border-top-size = 0
|
border-top-size = 0
|
||||||
|
|
||||||
modules-left = ${env:PB_BAR_PRIMARY_MODULES_LEFT:battery cpu memory}
|
modules-left = ${env:PB_BAR_PRIMARY_MODULES_LEFT:battery cpu memory dpkg}
|
||||||
modules-center = ${env:PB_BAR_PRIMARY_MODULES_CENTER: bspwm}
|
modules-center = ${env:PB_BAR_PRIMARY_MODULES_CENTER: bspwm}
|
||||||
modules-right = ${env:PB_BAR_PRIMARY_MODULES_RIGHT:xbacklight volume date}
|
modules-right = ${env:PB_BAR_PRIMARY_MODULES_RIGHT:xbacklight volume date}
|
||||||
|
|
||||||
@ -142,8 +144,19 @@ content-background = ${res/colors.border}
|
|||||||
type = custom/text
|
type = custom/text
|
||||||
content = " "
|
content = " "
|
||||||
|
|
||||||
|
# NOTIFICATION
|
||||||
|
#====================
|
||||||
|
[module/dpkg]
|
||||||
|
type = custom/script
|
||||||
|
format = <label>
|
||||||
|
format-foreground = ${res/colors.notif-package}
|
||||||
|
interval = 1
|
||||||
|
exec = printf "DPKG\n"
|
||||||
|
exec-if = [ -f /var/lib/dpkg/lock ]
|
||||||
|
|
||||||
# OTHER
|
# OTHER
|
||||||
#====================
|
#====================
|
||||||
|
|
||||||
[module/battery]
|
[module/battery]
|
||||||
type = internal/battery
|
type = internal/battery
|
||||||
format-charging = <label-charging>
|
format-charging = <label-charging>
|
||||||
|
Loading…
Reference in New Issue
Block a user