From c97d872e726b7826100b2f125ef3ea7cc76ce615 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Mon, 5 Dec 2022 08:38:29 +0100 Subject: rc: make only one urgency widget --- rc.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'rc.lua') diff --git a/rc.lua b/rc.lua index c72747a..807c0a2 100644 --- a/rc.lua +++ b/rc.lua @@ -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) -- cgit v1.2.3