File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -37,15 +37,15 @@ local debounceTime = 1 -- seconds
3737--
3838-- global so we can check it from Hammerspoon Console for debugging
3939function getFirstMultiOutputDevice ()
40- local handle = io.popen (" /opt/homebrew/bin/SwitchAudioSource -a -t output | grep -m1 '^Multi-Output Device'" )
40+ local handle = io.popen (" /opt/homebrew/bin/SwitchAudioSource -a -t output | grep -i - m1 '^Multi-Output Device'" )
4141 if not handle then return nil end
4242 local result = handle :read (" *l" )
4343 handle :close ()
4444 return result
4545end
4646
4747function getFirstBlackholeInputDevice ()
48- local handle = io.popen (" /opt/homebrew/bin/SwitchAudioSource -a -t input | grep -m1 '^Blackhole '" )
48+ local handle = io.popen (" /opt/homebrew/bin/SwitchAudioSource -a -t input | grep -i - m1 '^BlackHole '" )
4949 if not handle then return nil end
5050 local result = handle :read (" *l" )
5151 handle :close ()
You can’t perform that action at this time.
0 commit comments