Skip to content

Commit 0032a8f

Browse files
committed
Improve README
1 parent 305f61e commit 0032a8f

File tree

1 file changed

+20
-4
lines changed

1 file changed

+20
-4
lines changed

README.md

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,37 @@
22
Simple macOS CLI to connect/disconnect a Bluetooth device. I made it to easily connect my BeatsX earbuds (I thought the W1 chip would make the switch from my iPhone to my Mac seamless, but we're not there yet, apparently). There's probably a program that already does this but I didn't find it.
33

44
You can download a compiled version here: https://github.com/lapfelix/BluetoothConnector/releases
5-
(or from here when AWS is down: https://www.dropbox.com/s/kxt8c5n3cgxfenh/BluetoothConnector.zip?dl=1)
65

76
If you have issues running the compiled binary (`permission denied` error), try running this command in Terminal:
8-
97
`chmod +x /path/to/BluetoothConnector`
108

119
# Usage
12-
#### Compiling, installing and then running from the command line
10+
#### Compiling and installing
1311
```
1412
swift build
1513
mv .build/release/BluetoothConnector /usr/local/bin/BluetoothConnector
16-
./BluetoothConnector 00-00-00-00-00-00
1714
```
15+
16+
#### Running
1817
Replace `00-00-00-00-00-00` is your device's MAC address. You can get it by alt-clicking the Bluetooth menu icon or by running BluetoothConnector without any arguments
1918

19+
To toggle the connection (connect/disconnect):
20+
```
21+
BluetoothConnector 00-00-00-00-00-00
22+
```
23+
24+
To connect:
25+
```
26+
BluetoothConnector --connect 00-00-00-00-00-00
27+
BluetoothConnector -c 00-00-00-00-00-00
28+
```
29+
30+
To disconnect:
31+
```
32+
BluetoothConnector --disconnect 00-00-00-00-00-00
33+
BluetoothConnector -d 00-00-00-00-00-00
34+
```
35+
2036
#### With Automator to bind a shortcut to it (this is how I'm using it)
2137
I included an Automator workflow service that calls BluetoothConnector from `/usr/local/bin` to make it easier to run BluetoothConnector with a keyboard workflow (this is how I'm using it).
2238

0 commit comments

Comments
 (0)