From 85ee18e88f6e9ee3f6a902a004d0000aea0fc541 Mon Sep 17 00:00:00 2001 From: "Adrian C. (anrxc)" Date: Wed, 29 May 2024 17:23:48 +0200 Subject: rc.lua: launch calendar on date widget click --- rc.lua | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'rc.lua') diff --git a/rc.lua b/rc.lua index 0a2a47b..cc83f6b 100644 --- a/rc.lua +++ b/rc.lua @@ -116,8 +116,16 @@ mydateicon = wibox.widget.imagebox(home .. "/.config/awesome/icons/time.png", fa mydatewidget = wibox.widget.textbox() mydatestwidget = wibox.widget.textbox() -- Register widgets -vicious.register(mydatewidget, vicious.widgets.date, "%R", 61) -- Amsterdam +vicious.register(mydatewidget, vicious.widgets.date, "%R", 61) -- Amsterdam vicious.register(mydatestwidget, vicious.widgets.date, "%R", 61, -21600) -- New York +-- Register buttons +mydatewidget:buttons(gears.table.join( + -- GTK3 calendar applet with holidays: https://sysphere.org/~anrxc/local/sources/pylendar.py + awful.button({ }, 1, function () exec(home .. "/code/bin/pylendar.py") end) +)) +mydatestwidget:buttons(gears.table.join( + awful.button({ }, 1, function () exec(home .. "/code/bin/pylendar.py") end) +)) -- }}} -- {{{ Flexible widget -- cgit v1.2.3