From 349cc28d7ddc2efd965ef0dc6eb9cd771dfb82f7 Mon Sep 17 00:00:00 2001 From: nocode Date: Sat, 4 Jul 2026 12:56:03 +0200 Subject: [PATCH] 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. --- .../airootfs/usr/local/share/fws/polybar-config.ini | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/configs/releng/airootfs/usr/local/share/fws/polybar-config.ini b/configs/releng/airootfs/usr/local/share/fws/polybar-config.ini index 9922af7..8094a4d 100644 --- a/configs/releng/airootfs/usr/local/share/fws/polybar-config.ini +++ b/configs/releng/airootfs/usr/local/share/fws/polybar-config.ini @@ -37,7 +37,7 @@ font-1 = Symbols Nerd Font:size=12;3 font-2 = Noto Sans:weight=bold:size=10;2 modules-left = i3 xwindow 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 wm-restack = i3 @@ -79,6 +79,15 @@ label-font = 3 format-background = ${colors.surface0} 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] type = custom/script exec = echo "󰌌 Raccourcis"