From 59cb48c6c051c3c49ff69bb16bd90bd50b402131 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Mon, 15 Nov 2021 09:10:55 +0100 Subject: rc: add a systray widget showing desktops with urgent windows --- rc.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'rc.lua') diff --git a/rc.lua b/rc.lua index e1d23c2..d479ca5 100644 --- a/rc.lua +++ b/rc.lua @@ -12,6 +12,7 @@ local naughty = require("naughty") local bindings = require("bindings") local commondefs = require("commondefs") local pager = require("pager") +local urgent_wgt = require("urgent_wgt") local utils = require("utils") local workspace = require("workspace") @@ -97,8 +98,11 @@ 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 layout_utils = wibox.layout.flex.horizontal() + 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) -- Create a tasklist widget local pgr = pager.Pager:new(wsp, s) -- cgit v1.2.3