From: Brendan Almonte Date: Wed, 9 Apr 2014 01:36:35 +0000 (-0400) Subject: Adding scrolling support to the calendar X-Git-Url: https://git.madduck.net/etc/awesome.git/commitdiff_plain/604b85a6e4d0353284aaeeefbbc16c213ec25c9e?hp=315106253f0bd8a218ffc06f8c2b9d2781372e78 Adding scrolling support to the calendar --- diff --git a/widgets/calendar.lua b/widgets/calendar.lua index bd7f08c..f83b966 100644 --- a/widgets/calendar.lua +++ b/widgets/calendar.lua @@ -120,7 +120,11 @@ function calendar:attach(widget, args) widget:buttons(awful.util.table.join( awful.button({ }, 1, function () calendar:show(0, -1) end), awful.button({ }, 3, function () - calendar:show(0, 1) end) )) + calendar:show(0, 1) end), + awful.button({ }, 4, function () + calendar:show(0, -1) end), + awful.button({ }, 5, function () + calendar:show(0, 1) end))) end return setmetatable(calendar, { __call = function(_, ...) return create(...) end })