summaryrefslogtreecommitdiff
path: root/rc.lua
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2021-11-15 09:10:55 +0100
committerAnton Khirnov <anton@khirnov.net>2021-11-15 09:10:55 +0100
commit59cb48c6c051c3c49ff69bb16bd90bd50b402131 (patch)
tree05b3751021982515cc17de2d8e0545a9524dae98 /rc.lua
parent8ab133d7ea3ade54b85f42eaf4b9d6ef244c5ee0 (diff)
rc: add a systray widget showing desktops with urgent windows
Diffstat (limited to 'rc.lua')
-rw-r--r--rc.lua6
1 files changed, 5 insertions, 1 deletions
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)