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 /volumearc-widget | |
parent | a127ffe8efc8ccb91b7a8495c23f67278609df25 (diff) |
Add widget timeouts
Diffstat (limited to 'volumearc-widget')
-rw-r--r-- | volumearc-widget/volumearc.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/volumearc-widget/volumearc.lua b/volumearc-widget/volumearc.lua index c582c10..91ae763 100644 --- a/volumearc-widget/volumearc.lua +++ b/volumearc-widget/volumearc.lua @@ -33,6 +33,7 @@ local function worker(args) local path_to_icon = args.path_to_icon or PATH_TO_ICON local thickness = args.thickness or 2 local height = args.height or 18 + local timeout = args.timeout or 1 local get_volume_cmd = args.get_volume_cmd or GET_VOLUME_CMD local inc_volume_cmd = args.inc_volume_cmd or INC_VOLUME_CMD @@ -81,7 +82,7 @@ local function worker(args) end volumearc:connect_signal("button::press", button_press) - watch(get_volume_cmd, 1, update_graphic, volumearc) + watch(get_volume_cmd, timeout, update_graphic, volumearc) return volumearc end |