Skip to content

Commit 3452082

Browse files
committed
updated init.lua
1 parent 0d24d3c commit 3452082

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

configs/.hammerspoon/init.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,15 @@ local debounceTime = 1 -- seconds
3737
--
3838
-- global so we can check it from Hammerspoon Console for debugging
3939
function 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
4545
end
4646

4747
function 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()

0 commit comments

Comments
 (0)