From d2779c6613a500654fb27fa47f53a3bb96b220c1 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Fri, 11 Jun 2021 08:04:18 +0200 Subject: rc: display the layout indicator at tray icon size --- rc.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/rc.lua b/rc.lua index 359fd59..4460166 100644 --- a/rc.lua +++ b/rc.lua @@ -91,6 +91,10 @@ for s in screen do awful.button({ }, 3, function () awful.layout.inc(layouts, -1) end), awful.button({ }, 4, function () awful.layout.inc(layouts, 1) end), awful.button({ }, 5, function () awful.layout.inc(layouts, -1) end))) + local layoutbox_container = wibox.container.constraint(layoutbox, 'max', beautiful.xresources.apply_dpi(tray_icon_size)) + + local layout_utils = wibox.layout.flex.horizontal() + layout_utils:add(layoutbox_container) -- Create a tasklist widget local pgr = pager.Pager:new(s) @@ -108,7 +112,7 @@ for s in screen do layout_bottom:add(systray) - layout_bottom:add(layoutbox) + layout_bottom:add(layout_utils) layout_bottom:add(clock_time) layout_bottom:add(clock_date) -- cgit v1.2.3