aboutsummaryrefslogtreecommitdiffstats
path: root/modules/desktop/eww/yuck.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/desktop/eww/yuck.nix')
-rw-r--r--modules/desktop/eww/yuck.nix9
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))))))
'';
};
}