From b8421e8b96d61700d48700a10183a267755601f1 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Sat, 14 Jun 2014 15:45:58 +0200 Subject: Add RSS count to status bar --- .config/awesome/rc.lua | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua index 20af5da..e3b4851 100644 --- a/.config/awesome/rc.lua +++ b/.config/awesome/rc.lua @@ -202,6 +202,20 @@ mymaillisttimer:connect_signal( end) mymaillisttimer:start() +myrsslist = wibox.widget.textbox() +myrsslist:set_text( + string.format(" rss: %d", awful.util.pread("rss-count")) +) +myrsslisttimer = timer({ timeout = 60 * 60 }) +myrsslisttimer:connect_signal( + "timeout", + function () + myrsslist:set_text( + string.format(" rss: %d", awful.util.pread("rss-count")) + ) + end +) +myrsslisttimer:start() for s = 1, screen.count() do -- Create a promptbox for each screen @@ -232,6 +246,7 @@ for s = 1, screen.count() do -- Widgets that are aligned to the right local right_layout = wibox.layout.fixed.horizontal() if s == 1 then + right_layout:add(myrsslist) right_layout:add(mymaillist) right_layout:add(wibox.widget.systray()) end -- cgit v1.2.3-54-g00ecf