diff options
author | Anton Khirnov <anton@khirnov.net> | 2021-06-11 08:04:18 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2021-06-11 08:04:18 +0200 |
commit | d2779c6613a500654fb27fa47f53a3bb96b220c1 (patch) | |
tree | 020c4a49f96de40d70c9883e6fb2d8bed9f7800a | |
parent | 1a3db44e1b3edf2f71f65ac072c884c3fdad0bbf (diff) |
rc: display the layout indicator at tray icon size
-rw-r--r-- | rc.lua | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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) |