aboutsummaryrefslogtreecommitdiffstats
path: root/modules/desktop/eww/bar
diff options
context:
space:
mode:
authorArpit Chakladar <arpitchakladar@gmail.com>2026-09-23 21:58:30 +0530
committerArpit Chakladar <arpitchakladar@gmail.com>2026-09-23 22:04:21 +0530
commit0596138627bd653b98624ac12e69d77bb9318a21 (patch)
treec2b1df2b389bdad99b6f351536f7820967e0d337 /modules/desktop/eww/bar
parent855c8f3b02e9338e43dbeb21b8fba2b6e0dcdd27 (diff)
downloadhome-manager-config-0596138627bd653b98624ac12e69d77bb9318a21.tar.gz
home-manager-config-0596138627bd653b98624ac12e69d77bb9318a21.zip
Revert "fix(desktop/eww): fixed the overflowing of the windows and workspaces"
This reverts commit 31f0f74817a0a3fd0eb9dcd6fa192f6fc3b0a352.
Diffstat (limited to 'modules/desktop/eww/bar')
-rw-r--r--modules/desktop/eww/bar/bar.yuck84
1 files changed, 39 insertions, 45 deletions
diff --git a/modules/desktop/eww/bar/bar.yuck b/modules/desktop/eww/bar/bar.yuck
index 31b2526..2f314ac 100644
--- a/modules/desktop/eww/bar/bar.yuck
+++ b/modules/desktop/eww/bar/bar.yuck
@@ -30,56 +30,50 @@
:class "bar-container"
:vexpand true
(workspaces-widget :workspaces "${niri_status.workspaces}")
- (box :vexpand true
- (windows-widget :windows "${niri_status.active_windows}"))
+ (windows-widget :windows "${niri_status.active_windows}")
(system-widget)))
(defwidget workspaces-widget [workspaces]
- (scroll :hscroll false
- :vscroll true
- :height 250
- (box :orientation "v"
- :space-evenly false
- :spacing 4
- :halign "fill"
- :class "workspaces"
- (for ws in workspaces
- (eventbox :onclick "niri msg action focus-workspace ${ws.idx}"
- :cursor "pointer"
- :halign "fill"
- :tooltip "${ws.tooltip}"
- (box :class "workspace-button ${ws.is_active ? 'active' : ''}"
- :halign "fill"
- (overlay :halign "fill"
- (image :class "workspace-icon"
- :path "${ws.icon}"
- :image-width 20
- :image-height 20)
- (label :class "workspace-idx"
- :text "${ws.idx}"
- :halign "end"
- :valign "end"))))))))
+ (box :orientation "v"
+ :space-evenly false
+ :spacing 4
+ :halign "fill"
+ :class "workspaces"
+ (for ws in workspaces
+ (eventbox :onclick "niri msg action focus-workspace ${ws.idx}"
+ :cursor "pointer"
+ :halign "fill"
+ :tooltip "${ws.tooltip}"
+ (box :class "workspace-button ${ws.is_active ? 'active' : ''}"
+ :halign "fill"
+ (overlay :halign "fill"
+ (image :class "workspace-icon"
+ :path "${ws.icon}"
+ :image-width 20
+ :image-height 20)
+ (label :class "workspace-idx"
+ :text "${ws.idx}"
+ :halign "end"
+ :valign "end")))))))
(defwidget windows-widget [windows]
- (scroll :hscroll false
- :vscroll true
- :vexpand true
- (box :orientation "v"
- :space-evenly false
- :spacing 4
- :halign "center"
- :class "windows"
- (for w in windows
- (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}"
- :image-width 20
- :image-height 20)))))))
+ (box :orientation "v"
+ :space-evenly false
+ :spacing 4
+ :halign "center"
+ :class "windows"
+ :vexpand true
+ (for w in windows
+ (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}"
+ :image-width 20
+ :image-height 20))))))
(defwidget system-widget []
(box :orientation "v"