X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/586c54a25750fd90d91c15ac8eb818b2613de582..d9fcd8880cb6e6f0373178d6ae9f1d57f941c377:/widget/fs.lua?ds=sidebyside diff --git a/widget/fs.lua b/widget/fs.lua index 49345ca..f1bd648 100644 --- a/widget/fs.lua +++ b/widget/fs.lua @@ -32,13 +32,13 @@ function fs.show(seconds, scr) if fs.followtag then fs.notification_preset.screen = focused() - elseif scr then + else fs.notification_preset.screen = scr or 1 end fs.notification = naughty.notify({ - preset = fs.notification_preset, - timeout = seconds or 5 + preset = fs.notification_preset, + timeout = seconds or 5 }) end @@ -100,7 +100,7 @@ local function factory(args) naughty.notify({ preset = naughty.config.presets.critical, title = "Warning", - text = partition .. " is empty", + text = partition .. " is full", }) helpers.set_map(partition, true) else