diff options
author | Anton Khirnov <anton@khirnov.net> | 2022-12-05 08:38:29 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2022-12-05 08:38:38 +0100 |
commit | c97d872e726b7826100b2f125ef3ea7cc76ce615 (patch) | |
tree | 9ddee9b27dcde9461ec5a5938966d3536e64d467 | |
parent | e1f37cabb462f82a453260b29de2c784b1928d79 (diff) |
rc: make only one urgency widget
-rw-r--r-- | rc.lua | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -72,6 +72,10 @@ end screen.connect_signal('primary_changed', update_systray_iconsize) update_systray_iconsize() +-- widget indicating a desk with urgent clients +-- global, shown only on the primary screen +local u_wgt = urgent_wgt.UrgentWidget:new() + -- Create a wibox for each screen and add it mywibox = {} mypromptbox = {} @@ -98,8 +102,6 @@ awful.screen.connect_for_each_screen(function(s) 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 u_wgt = urgent_wgt.UrgentWidget:new() - local layout_utils = wibox.layout.fixed.horizontal() layout_utils:add(layoutbox_container) layout_utils:add(u_wgt.widget) |