BluetoothGuardian 中文文档
BluetoothGuardian is a macOS application that automatically turns off Bluetooth when the screen is turned off and turns it back on when the screen is turned on.
Every day when I carry my laptop around, I like to connect my Bluetooth headphones to the laptop. However, the headphones automatically connect to the laptop in my backpack every time. I have to turn on the laptop, turn off Bluetooth, and then pair my headphones with my phone. This process is quite troublesome, so I decided to create this application to solve this problem.
- macOS 10.14 or higher
- blueutil (
brew install blueutil
)
- Download the latest release from the releases page.
- Double-click the downloaded
.dmg
file to mount it. - Drag the
BluetoothGuardian
icon to theApplications
folder. - Open
System Preferences
>Security & Privacy
>Privacy
>Accessibility
. - Click the lock icon to make changes and enter your password.
- Click the
+
icon and selectBluetoothGuardian
from the Applications folder. - Launch
BluetoothGuardian
from theApplications
folder.
To build from source, you need to have Go 1.19 installed.
- Clone the repository:
https://github.com/hustuhao/BluetoothGuardian.git
- Navigate to the repository:
cd BluetoothGuardian
- Build the application:
go build -o BluetoothGuardian
- Launch the application:
./BluetoothGuardian
This project is licensed under the MIT License. See the LICENSE file for details.