Tired of your bluetooth headphones pairing with a MacOs computer you thought was asleep ? This fixes that
KBOS uses sleepwatcher
and Blueutil
to turn off bluetooth when your mac falls asleep, then turns it back on when the computer is woken up.
KBOS requires Homebrew which is used to install the following packages:
- Install Homebrew manually first.
- run
bash setup.sh
from this directory.
-h, --help show brief help menu
-d, --disable disables KBOS, but doesn't uninstall anything.
-e, --enable re-enables KBOS from a disabled state
-u, --uninstall removes the ~/sleepscripts directory and the KBOS Plist but does NOT uninstall brew, Blueutil, or sleepwatcher. I'll let you handle that on your own https://docs.brew.sh/FAQ#how-do-i-uninstall-a-formula.
- Attempt to connect to last connected device on wake.
- Improve script output and robustness
If this script doesn't work for you, please let me know so I can improve it or feel free to send a pull request.