X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/557b53288158a01491dbb4d237dfc8dc652f5e20..354fa23548674b83620ea69d42cffdd707e13dbf:/widgets/fs.lua?ds=inline 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 }