From 23df7656e5fd3af6d622361530fa1681c4bf761b Mon Sep 17 00:00:00 2001 From: nocode Date: Fri, 3 Jul 2026 23:59:53 +0200 Subject: [PATCH] feat(waybar): add waybar configuration for hyprland desktop environment Add waybar panel configuration with modules for workspaces, window title, clock, volume, network, CPU, and memory monitoring. Configured for top panel layout with French localization support. --- .../usr/local/share/fws/waybar-config.json | 51 +++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 configs/releng/airootfs/usr/local/share/fws/waybar-config.json diff --git a/configs/releng/airootfs/usr/local/share/fws/waybar-config.json b/configs/releng/airootfs/usr/local/share/fws/waybar-config.json new file mode 100644 index 0000000..e55339a --- /dev/null +++ b/configs/releng/airootfs/usr/local/share/fws/waybar-config.json @@ -0,0 +1,51 @@ +{ + "layer": "top", + "position": "top", + "height": 34, + "spacing": 4, + "modules-left": ["hyprland/workspaces", "hyprland/window"], + "modules-center": ["clock"], + "modules-right": ["custom/keyhelp", "pulseaudio", "network", "cpu", "memory", "tray"], + + "hyprland/workspaces": { + "format": "{id}", + "on-click": "activate" + }, + "hyprland/window": { + "max-length": 55, + "separate-outputs": true + }, + "clock": { + "format": "{:%H:%M}", + "format-alt": "{:%A %d %B %Y — %H:%M}", + "tooltip-format": "{calendar}" + }, + "custom/keyhelp": { + "format": "⌨ Raccourcis", + "tooltip-format": "Raccourcis clavier (SUPER+K)", + "on-click": "fws-hypr-keys" + }, + "pulseaudio": { + "format": "Vol {volume}%", + "format-muted": "Muet", + "on-click": "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle", + "tooltip": false + }, + "network": { + "format-wifi": "{essid}", + "format-ethernet": "{ipaddr}", + "format-disconnected": "hors ligne", + "tooltip-format": "{ifname} — {ipaddr}" + }, + "cpu": { + "format": "CPU {usage}%", + "interval": 3 + }, + "memory": { + "format": "RAM {percentage}%", + "interval": 3 + }, + "tray": { + "spacing": 8 + } +}