diff options
author | Chris Bruce <aprofessionalemailaddress@gmail.com> | 2020-09-19 01:08:15 -0700 |
---|---|---|
committer | Chris Bruce <aprofessionalemailaddress@gmail.com> | 2020-09-19 01:08:15 -0700 |
commit | a2eddcdfcd87976866f797b5ad2b795495d2e620 (patch) | |
tree | e3498520985e33915a211389951d6c0c971b972b /brightness-widget | |
parent | a127ffe8efc8ccb91b7a8495c23f67278609df25 (diff) |
Add widget timeouts
Diffstat (limited to 'brightness-widget')
-rw-r--r-- | brightness-widget/brightness.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/brightness-widget/brightness.lua b/brightness-widget/brightness.lua index 28e7015..0cfbea4 100644 --- a/brightness-widget/brightness.lua +++ b/brightness-widget/brightness.lua @@ -28,6 +28,7 @@ local function worker(args) local dec_brightness_cmd = args.dec_brightness_cmd or DEC_BRIGHTNESS_CMD local path_to_icon = args.path_to_icon or PATH_TO_ICON local font = args.font or 'Play 9' + local timeout = args.timeout or 1 local brightness_text = wibox.widget.textbox() brightness_text:set_font(font) @@ -61,7 +62,7 @@ local function worker(args) end end) - watch(get_brightness_cmd, 1, update_widget, brightness_text) + watch(get_brightness_cmd, timeout, update_widget, brightness_text) return widget end |