Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library
← Back to context

Comment by aisamu

1 year ago

I "fixed" this with a Hammerspoon snippet that monitors input changes and reverts them:

    mic = hs.audiodevice.findInputByName("MacBook Pro Microphone")
    function handle_deselected(_, type)
      if (type == "gone") then
        if not mic:inUse() then
          mic:setDefaultInputDevice()
        end
      end
    end
    mic:watcherCallback(handle_deselected)
    mic:watcherStart()

0 comments

aisamu

Reply

No comments yet

Contribute on Hacker News ↗

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities