From b5f00d8dd2fa6504e1130ea118f705ab577a3285 Mon Sep 17 00:00:00 2001 From: nocode Date: Sat, 4 Jul 2026 12:56:08 +0200 Subject: [PATCH] feat(waybar): add custom updates module to waybar configuration Add a new custom/updates module to the waybar right-side modules that displays available system updates. The module executes fws-updates-check every 30 minutes (1800 seconds) and allows users to install updates by clicking, which launches a kitty terminal running fws-update. Tooltip text is displayed in French. --- .../airootfs/usr/local/share/fws/waybar-config.json | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/configs/releng/airootfs/usr/local/share/fws/waybar-config.json b/configs/releng/airootfs/usr/local/share/fws/waybar-config.json index 4dc0d20..90f844c 100644 --- a/configs/releng/airootfs/usr/local/share/fws/waybar-config.json +++ b/configs/releng/airootfs/usr/local/share/fws/waybar-config.json @@ -8,7 +8,14 @@ "margin-right": 10, "modules-left": ["hyprland/workspaces", "hyprland/window"], "modules-center": ["clock"], - "modules-right": ["custom/keyhelp", "backlight", "pulseaudio", "bluetooth", "network", "cpu", "memory", "battery", "tray"], + "modules-right": ["custom/updates", "custom/keyhelp", "backlight", "pulseaudio", "bluetooth", "network", "cpu", "memory", "battery", "tray"], + + "custom/updates": { + "exec": "fws-updates-check", + "interval": 1800, + "tooltip-format": "Mises à jour disponibles — clic pour installer", + "on-click": "kitty -e fws-update" + }, "hyprland/workspaces": { "format": "{id}",