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:
@@ -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": {
|
||||
|
||||
Reference in New Issue
Block a user