Add script for counting pacman updates in polybar

This commit is contained in:
2021-09-17 22:07:23 +03:00
parent f9863dee9d
commit 51befc9b59
3 changed files with 18 additions and 1 deletions

View File

@@ -18,7 +18,7 @@ font-2 = FontAwesome5FreeSolid:size=11
modules-left = workspaces active-window
modules-center = date
modules-right = keyboard-layout volume-control network power-menu
modules-right = pacman-updates keyboard-layout volume-control network power-menu
module-margin = 1
@@ -70,6 +70,17 @@ label = %time% %date%
; RIGHT MODULES
;
[module/pacman-updates]
type = custom/script
exec = count-pacman-updates
interval = 300
format = <label>
format-prefix = " "
label = %output% updates
[module/keyboard-layout]
type = internal/xkeyboard