style(waybar): enhance waybar configuration with improved styling and additional modules

Update waybar configuration with:
- Adjusted height (34 to 36) and spacing (4 to 2)
- Added margins (top: 6, left: 10, right: 10)
- Added workspace navigation with scroll (e-1/e+1)
- Added backlight, bluetooth, and battery modules
- Enhanced clock format with calendar styling
- Improved audio controls with pavucontrol integration
- Added network bandwidth display
- Updated all module icons to use modern emoji/nerd font glyphs
- Improved tooltips with more detailed information
- Adjusted max window name length from 55 to 45 characters
This commit is contained in:
2026-07-04 00:26:09 +02:00
parent 8224a24d02
commit 289a70c10c
@@ -1,51 +1,89 @@
{ {
"layer": "top", "layer": "top",
"position": "top", "position": "top",
"height": 34, "height": 36,
"spacing": 4, "spacing": 2,
"margin-top": 6,
"margin-left": 10,
"margin-right": 10,
"modules-left": ["hyprland/workspaces", "hyprland/window"], "modules-left": ["hyprland/workspaces", "hyprland/window"],
"modules-center": ["clock"], "modules-center": ["clock"],
"modules-right": ["custom/keyhelp", "pulseaudio", "network", "cpu", "memory", "tray"], "modules-right": ["custom/keyhelp", "backlight", "pulseaudio", "bluetooth", "network", "cpu", "memory", "battery", "tray"],
"hyprland/workspaces": { "hyprland/workspaces": {
"format": "{id}", "format": "{id}",
"on-click": "activate" "on-click": "activate",
"on-scroll-up": "hyprctl dispatch workspace e-1",
"on-scroll-down": "hyprctl dispatch workspace e+1"
}, },
"hyprland/window": { "hyprland/window": {
"max-length": 55, "max-length": 45,
"separate-outputs": true "separate-outputs": true
}, },
"clock": { "clock": {
"format": "{:%H:%M}", "format": "󰥔 {:%H:%M %A %d %B %Y}",
"format-alt": "{:%A %d %B %Y — %H:%M}", "format-alt": "󰥔 {:%H:%M}",
"tooltip-format": "<tt>{calendar}</tt>" "tooltip-format": "<tt>{calendar}</tt>",
"calendar": {
"format": {
"today": "<b><span color='#89b4fa'>{}</span></b>"
}
}
}, },
"custom/keyhelp": { "custom/keyhelp": {
"format": " Raccourcis", "format": "󰌌 Raccourcis",
"tooltip-format": "Raccourcis clavier (SUPER+K)", "tooltip-format": "Raccourcis clavier (SUPER+K)",
"on-click": "fws-hypr-keys" "on-click": "fws-hypr-keys"
}, },
"backlight": {
"format": "{icon} {percent}%",
"format-icons": ["󰃞", "󰃟", "󰃠"],
"on-scroll-up": "brightnessctl set +5%",
"on-scroll-down": "brightnessctl set 5%-",
"tooltip-format": "Luminosité {percent}% (molette pour régler)"
},
"pulseaudio": { "pulseaudio": {
"format": "Vol {volume}%", "format": "{icon} {volume}%",
"format-muted": "Muet", "format-muted": "󰝟 muet",
"on-click": "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle", "format-icons": { "default": ["󰕿", "󰖀", "󰕾"] },
"tooltip": false "on-click": "pavucontrol",
"on-click-right": "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle",
"on-scroll-up": "wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 2%+",
"on-scroll-down": "wpctl set-volume @DEFAULT_AUDIO_SINK@ 2%-",
"tooltip-format": "{desc} — clic : mixeur, clic droit : muet"
},
"bluetooth": {
"format": "󰂯",
"format-disabled": "󰂲",
"format-connected": "󰂱 {num_connections}",
"on-click": "blueman-manager",
"tooltip-format": "{controller_alias}\t{controller_address}",
"tooltip-format-connected": "{device_enumerate}"
}, },
"network": { "network": {
"format-wifi": "{essid}", "format-wifi": "󰤨 {essid}",
"format-ethernet": "{ipaddr}", "format-ethernet": "󰈀 {ipaddr}",
"format-disconnected": "hors ligne", "format-disconnected": "󰤭 hors ligne",
"tooltip-format": "{ifname} — {ipaddr}" "tooltip-format": "{ifname} — {ipaddr}\n⇡ {bandwidthUpBytes} ⇣ {bandwidthDownBytes}"
}, },
"cpu": { "cpu": {
"format": "CPU {usage}%", "format": " {usage}%",
"interval": 3 "interval": 3
}, },
"memory": { "memory": {
"format": "RAM {percentage}%", "format": " {percentage}%",
"interval": 3 "interval": 3,
"tooltip-format": "{used:0.1f} / {total:0.1f} Gio"
},
"battery": {
"states": { "warning": 25, "critical": 10 },
"format": "{icon} {capacity}%",
"format-charging": "󰂄 {capacity}%",
"format-icons": ["󰁺", "󰁼", "󰁾", "󰂀", "󰁹"],
"tooltip-format": "{timeTo}"
}, },
"tray": { "tray": {
"spacing": 8 "spacing": 8,
"icon-size": 16
} }
} }