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
+22
View File
@@ -13,6 +13,7 @@ bg = c['special']['background']
fg = c['special']['foreground']
pink = c['colors']['color1']
green = c['colors']['color2']
warn = c['colors']['color3']
muted = c['colors']['color8']
dark = c['colors']['color0']
@@ -51,6 +52,11 @@ window#waybar.bottom {{
font-style: italic;
}}
#custom-notification.critical {{
color: {pink};
font-style: italic;
}}
#disk,
#network.speed {{
padding: 1px 8px;
@@ -87,6 +93,12 @@ window#waybar.bottom {{
animation: blink 0.6s steps(1) infinite;
}}
#workspaces button .windows-icon {{
font-size: 9px;
color: {muted};
margin-left: 2px;
}}
#window {{
color: {muted};
padding: 0 10px;
@@ -102,6 +114,7 @@ window#waybar.bottom {{
#cpu,
#memory,
#temperature,
#battery,
#network,
#pulseaudio,
#tray {{
@@ -111,6 +124,15 @@ window#waybar.bottom {{
transition: all 0.2s ease;
}}
#battery.warning {{
color: {warn};
}}
#battery.critical {{
color: {pink};
animation: blink 1s steps(1) infinite;
}}
#cpu:hover,
#memory:hover,
#network:hover,