aboutsummaryrefslogtreecommitdiffstats
path: root/modules/desktop/eww/bar
diff options
context:
space:
mode:
authorArpit Chakladar <arpitchakladar@gmail.com>2026-09-22 15:06:30 +0530
committerArpit Chakladar <arpitchakladar@gmail.com>2026-09-22 15:06:30 +0530
commit31f0f74817a0a3fd0eb9dcd6fa192f6fc3b0a352 (patch)
tree8e235693787173cebbb04355535c6d26e25ed84e /modules/desktop/eww/bar
parent76f87b5818b24fb2703a6ff2e516947bd3ed6002 (diff)
downloadhome-manager-config-31f0f74817a0a3fd0eb9dcd6fa192f6fc3b0a352.tar.gz
home-manager-config-31f0f74817a0a3fd0eb9dcd6fa192f6fc3b0a352.zip
fix(desktop/eww): fixed the overflowing of the windows and workspaces
Diffstat (limited to 'modules/desktop/eww/bar')
-rw-r--r--modules/desktop/eww/bar/bar.yuck84
1 files changed, 45 insertions, 39 deletions
diff --git a/modules/desktop/eww/bar/bar.yuck b/modules/desktop/eww/bar/bar.yuck
index dc2d575..14e27e4 100644
--- a/modules/desktop/eww/bar/bar.yuck
+++ b/modules/desktop/eww/bar/bar.yuck
@@ -25,50 +25,56 @@
:class "bar-container"
:vexpand true
(workspaces-widget :workspaces "${niri_status.workspaces}")
- (windows-widget :windows "${niri_status.active_windows}")
+ (box :vexpand true
+ (windows-widget :windows "${niri_status.active_windows}"))
(system-widget)))
(defwidget workspaces-widget [workspaces]
- (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")))))))
+ (scroll :hscroll false
+ :vscroll true
+ :height 200
+ (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]
- (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))))))
+ (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)))))))
(defwidget system-widget []
(box :orientation "v"