sstucki / KBOS

Tired of your bluetooth headphones pairing with a computer you thought was asleep ? This fixes that

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Tired of your bluetooth headphones pairing with a computer you thought was asleep ? This fixes that

License:MIT License


Languages

Language:Shell 100.0%