X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/fdb6e412a05acae3f4ad92f5f21a821c6f69a6a7..87b323bd06e0d7e4f6e4eca3dee9990d3662b7c5:/widgets/fs.lua diff --git a/widgets/fs.lua b/widgets/fs.lua index aa05bde..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,6 +65,7 @@ local function worker(args) local notify = args.notify or "on" local settings = args.settings or function() end + fs.options = args.options fs.followtag = args.followtag or false fs.notification_preset = args.notification_preset or { fg = beautiful.fg_normal }