diff options
| author | Arpit Chakladar <arpitchakladar+git@gmail.com> | 2026-08-26 17:05:44 +0530 |
|---|---|---|
| committer | Arpit Chakladar <arpitchakladar+git@gmail.com> | 2026-08-29 03:50:30 +0530 |
| commit | 84125094b25c2e5c03f2c65b87167f8291aaab5f (patch) | |
| tree | ba5244f4b873eddfc7d776b1e1c71a9d15c55ad6 /modules/desktop/eww/yuck.nix | |
| parent | dd76ef7e28a15b095de6afe61a825281f90df1be (diff) | |
| download | home-manager-config-84125094b25c2e5c03f2c65b87167f8291aaab5f.tar.gz home-manager-config-84125094b25c2e5c03f2c65b87167f8291aaab5f.zip | |
desktop: added styles for active window buttons
- made the active window buttons clickable to navigate to that window
Diffstat (limited to 'modules/desktop/eww/yuck.nix')
| -rw-r--r-- | modules/desktop/eww/yuck.nix | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/modules/desktop/eww/yuck.nix b/modules/desktop/eww/yuck.nix index df688fe..b4757b8 100644 --- a/modules/desktop/eww/yuck.nix +++ b/modules/desktop/eww/yuck.nix @@ -79,14 +79,19 @@ (eventbox :onclick "niri msg action focus-workspace ''${ws.idx}" :cursor "pointer" :halign "fill" - (box :halign "fill" :class "workspace-btn ''${ws.is_active ? 'active' : '''}" + (box :halign "fill" :class "workspace-button ''${ws.is_active ? 'active' : '''}" (label :text "''${ws.idx}")))))) (defwidget windows-widget [] (box :orientation "v" :space-evenly false :spacing 4 :halign "center" :class "windows" (for w in active-windows - (image :class "win-icon" :path "''${w.icon != ''' ? w.icon : '${../../../assets/icons/obs.svg}'}" :image-width 20 :image-height 20)))) + (eventbox :onclick "niri msg action focus-window --id ''${w.id}" + :cursor "pointer" + :halign "fill" + :tooltip "''${w.app_id}: ''${w.title != ''' ? ' ' : '''}''${w.title}" + (box :halign "fill" :class "window-button ''${w.is_focused ? 'focused' : '''}" + (image :class "window-icon" :path "''${w.icon != ''' ? w.icon : '${../../../assets/icons/obs.svg}'}" :image-width 20 :image-height 20)))))) ''; }; } |
