X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/2f1f0c572a85f3d393315b6b63aff12a063649b3..430e70670c3f0a38c1c300273784096aeb8728cd:/widgets/fs.lua diff --git a/widgets/fs.lua b/widgets/fs.lua index 49cb8f0..f578f8b 100644 --- a/widgets/fs.lua +++ b/widgets/fs.lua @@ -35,10 +35,10 @@ function fs.hide() end end -function fs.show(seconds, options, scr) +function fs.show(seconds, scr) fs.hide() - local cmd = (options and string.format("dfs %s", options)) or "dfs" + local cmd = (fs.options and string.format("dfs %s", fs.options)) or "dfs" local ws = helpers.read_pipe(helpers.scripts_dir .. cmd):gsub("\n*$", "") if fs.followtag then @@ -65,7 +65,8 @@ local function worker(args) local notify = args.notify or "on" local settings = args.settings or function() end - fs.followta g = args.followtag or false + fs.options = args.options + fs.followtag = args.followtag or false fs.notification_preset = args.notification_preset or { fg = beautiful.fg_normal } fs.widget = wibox.widget.textbox('')