summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2021-06-11 08:04:18 +0200
committerAnton Khirnov <anton@khirnov.net>2021-06-11 08:04:18 +0200
commitd2779c6613a500654fb27fa47f53a3bb96b220c1 (patch)
tree020c4a49f96de40d70c9883e6fb2d8bed9f7800a
parent1a3db44e1b3edf2f71f65ac072c884c3fdad0bbf (diff)
rc: display the layout indicator at tray icon size
-rw-r--r--rc.lua6
1 files changed, 5 insertions, 1 deletions
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)