X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/8f948b52ebd1ce35a20bf43708444a2bc01ad673..c7616e3ded2a894b560c9b499d0e142e579bc658:/widget/fs.lua diff --git a/widget/fs.lua b/widget/fs.lua index 473bd33..09e2ef5 100644 --- a/widget/fs.lua +++ b/widget/fs.lua @@ -1,9 +1,8 @@ - --[[ - - Licensed under GNU General Public License v2 - * (c) 2013, Luke Bonham - + + Licensed under GNU General Public License v2 + * (c) 2013, Luke Bonham + --]] local helpers = require("lain.helpers") @@ -93,7 +92,7 @@ local function factory(args) widget = fs.widget settings() - if notify == "on" and #fs_now.used > 0 and tonumber(fs_now.used) >= 99 and not helpers.get_map(partition) then + if notify == "on" and tonumber(fs_now.used) and tonumber(fs_now.used) >= 99 and not helpers.get_map(partition) then naughty.notify({ preset = naughty.config.presets.critical, title = "Warning",