feat(polybar): add updates module to polybar configuration

Add a new custom script module to check for system updates in the polybar status bar. The module runs fws-updates-check every 30 minutes and allows users to trigger updates with a left click to open the update utility in kitty terminal.
This commit is contained in:
2026-07-04 12:56:03 +02:00
parent fc1bc218a4
commit 349cc28d7d
@@ -37,7 +37,7 @@ font-1 = Symbols Nerd Font:size=12;3
font-2 = Noto Sans:weight=bold:size=10;2 font-2 = Noto Sans:weight=bold:size=10;2
modules-left = i3 xwindow modules-left = i3 xwindow
modules-center = date modules-center = date
modules-right = keyhelp backlight pulseaudio network cpu memory tray modules-right = updates keyhelp backlight pulseaudio network cpu memory tray
enable-ipc = true enable-ipc = true
wm-restack = i3 wm-restack = i3
@@ -79,6 +79,15 @@ label-font = 3
format-background = ${colors.surface0} format-background = ${colors.surface0}
format-padding = 3 format-padding = 3
[module/updates]
type = custom/script
exec = fws-updates-check
interval = 1800
click-left = kitty -e fws-update
format-background = ${colors.surface0}
format-foreground = ${colors.yellow}
format-padding = 2
[module/keyhelp] [module/keyhelp]
type = custom/script type = custom/script
exec = echo "󰌌 Raccourcis" exec = echo "󰌌 Raccourcis"