summaryrefslogtreecommitdiff
path: root/brightnessarc-widget
diff options
context:
space:
mode:
authorChris Bruce <aprofessionalemailaddress@gmail.com>2020-09-19 01:08:15 -0700
committerChris Bruce <aprofessionalemailaddress@gmail.com>2020-09-19 01:08:15 -0700
commita2eddcdfcd87976866f797b5ad2b795495d2e620 (patch)
treee3498520985e33915a211389951d6c0c971b972b /brightnessarc-widget
parenta127ffe8efc8ccb91b7a8495c23f67278609df25 (diff)
Add widget timeouts
Diffstat (limited to 'brightnessarc-widget')
-rw-r--r--brightnessarc-widget/brightnessarc.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/brightnessarc-widget/brightnessarc.lua b/brightnessarc-widget/brightnessarc.lua
index 6d3a769..ee93482 100644
--- a/brightnessarc-widget/brightnessarc.lua
+++ b/brightnessarc-widget/brightnessarc.lua
@@ -30,6 +30,7 @@ local function worker(args)
local color = args.color or beautiful.fg_color
local bg_color = args.bg_color or '#ffffff11'
local path_to_icon = args.path_to_icon or PATH_TO_ICON
+ local timeout = args.timeout or 1
local icon = {
id = "icon",
@@ -66,7 +67,7 @@ local function worker(args)
end
end)
- watch(get_brightness_cmd, 1, update_widget, widget)
+ watch(get_brightness_cmd, timeout, update_widget, widget)
return widget
end