X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/4f3babced781559863e7300491c8d6f0e228810e..013654cd1af4bb69f31c1c641cdb24bd8b7c58df:/widget/cal.lua diff --git a/widget/cal.lua b/widget/cal.lua index 50426ba..9b613bf 100644 --- a/widget/cal.lua +++ b/widget/cal.lua @@ -19,6 +19,7 @@ local tostring = tostring -- Calendar notification -- lain.widget.cal + local function factory(args) args = args or {} local cal = { @@ -79,7 +80,7 @@ local function factory(args) cal.notification = nil end - function cal.show(timeout, month, year) + function cal.show(timeout, month, year, scr) cal.notification_preset.text = tconcat(cal.build(month, year)) if cal.three then @@ -95,6 +96,7 @@ local function factory(args) cal.hide() cal.notification = naughty.notify { preset = cal.notification_preset, + screen = cal.followtag and awful.screen.focused() or scr or 1, icon = cal.icon, timeout = timeout or cal.notification_preset.timeout or 5 }