File tree 1 file changed +7
-7
lines changed
1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -16,11 +16,11 @@ display_status = function ()
16
16
end
17
17
display_status ()
18
18
19
- toggle = function (input )
20
- if input :muted () then
21
- input :setMuted (false )
19
+ toggle = function (device )
20
+ if device :muted () then
21
+ device :setMuted (false )
22
22
else
23
- input :setMuted (true )
23
+ device :setMuted (true )
24
24
end
25
25
end
26
26
31
31
control_key_timer = hs .timer .delayed .new (0.3 , control_key_handler )
32
32
33
33
option_handler = function (event )
34
- local input = hs .audiodevice .current (true ).device
34
+ local device = hs .audiodevice .current (true ).device
35
35
local new_mods = event :getFlags ()
36
36
37
37
-- alt keyDown
38
38
if new_mods [' alt' ] == true then
39
- toggle (input )
39
+ toggle (device )
40
40
if recently_clicked == true then
41
41
display_status ()
42
42
second_click = true
@@ -49,7 +49,7 @@ option_handler = function(event)
49
49
if second_click then
50
50
second_click = false
51
51
else
52
- toggle (input )
52
+ toggle (device )
53
53
end
54
54
end
55
55
You can’t perform that action at this time.
0 commit comments