Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 1.32 KB

README.md

File metadata and controls

30 lines (22 loc) · 1.32 KB

Kill Bluetooth On Sleep (KBOS)

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.

Prerequisites

KBOS requires Homebrew which is used to install the following packages:

Installation

  1. Install Homebrew manually first.
  2. run bash setup.sh from this directory.

Additional arguments

-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.

Future improvements

  • Attempt to connect to last connected device on wake.
  • Improve script output and robustness

Report a bug

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.