feat: show window icons per workspace in waybar

Adds {windows} format to hyprland/workspaces with icon mapping for
common apps (terminal, browser, file manager, editor, media, etc.).
Icons are dimmed and smaller than the workspace number.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-22 19:29:31 +02:00
parent 99a5967352
commit 8c6ae68298
2 changed files with 49 additions and 6 deletions
+27 -6
View File
@@ -25,7 +25,28 @@
],
"hyprland/workspaces": {
"format": "{id}",
"format": "{id} {windows}",
"format-window-separator": " ",
"window-rewrite-default": "",
"window-rewrite": {
"class<kitty>": "",
"class<foot>": "",
"class<Alacritty>": "",
"class<firefox>": "",
"class<chromium>": "",
"class<google-chrome>": "",
"class<dolphin>": "",
"class<thunar>": "",
"class<nautilus>": "",
"class<code>": "",
"class<code-url-handler>": "",
"class<discord>": "",
"class<telegram-desktop>": "",
"class<mpv>": "",
"class<vlc>": "",
"class<gimp>": "",
"class<spotify>": ""
},
"on-scroll-up": "hyprctl dispatch workspace e+1",
"on-scroll-down": "hyprctl dispatch workspace e-1",
"all-outputs": false
@@ -73,8 +94,8 @@
"format-plugged": "\uf1e6 {capacity}%",
"format-icons": ["\uf244", "\uf243", "\uf242", "\uf241", "\uf240"],
"states": {
"warning": 30,
"critical": 15
"warning": 85,
"critical": 80
},
"tooltip-format": "{timeTo}, {power:.1f}W"
},
@@ -124,11 +145,11 @@
},
"custom/notification": {
"exec": "[ -f /tmp/waybar-notif ] && echo \"\uf0f3 $(cat /tmp/waybar-notif)\" || echo ''",
"exec": "~/.config/waybar/notif-status.sh",
"return-type": "json",
"interval": 2,
"format": "{}",
"max-length": 80,
"on-click": "rm -f /tmp/waybar-notif"
"on-click": "rm -f /tmp/waybar-notif /tmp/waybar-notif-urgency"
},
"disk": {