1 vote
Accepted

Auto switch sound sink on power change

Solved with a python script that calls SwitchAudioSource installed by brew install switchaudio-osx: import psutil import subprocess import time while True: if psutil.sensors_battery()....
xgdgsc's user avatar
  • 721

Only top scored, non community-wiki answers of a minimum length are eligible