From 84125094b25c2e5c03f2c65b87167f8291aaab5f Mon Sep 17 00:00:00 2001 From: Arpit Chakladar Date: Wed, 26 Aug 2026 17:05:44 +0530 Subject: desktop: added styles for active window buttons - made the active window buttons clickable to navigate to that window --- modules/desktop/eww/yuck.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'modules/desktop/eww/yuck.nix') 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)))))) ''; }; } -- cgit v1.2.3