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/a8bbff7a6d224507d6212623cb1bdffea537e08d?ds=sidebyside;hp=-c Adding scrolling support to the calendar --- a8bbff7a6d224507d6212623cb1bdffea537e08d 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 })