Skip to content

Commit

Permalink
Update README to explain the --notify parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
lapfelix authored Jan 27, 2019
1 parent 1504e6d commit dbbc87b
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,23 +29,36 @@ mv .build/release/BluetoothConnector /usr/local/bin/BluetoothConnector
#### Running
Replace `00-00-00-00-00-00` with your device's MAC address. You can get it by alt-clicking the Bluetooth menu icon or by running BluetoothConnector without any arguments

To toggle the connection (connect/disconnect):
##### To toggle the connection (connect/disconnect):
```
BluetoothConnector 00-00-00-00-00-00
```

To connect:
##### To connect
```
BluetoothConnector --connect 00-00-00-00-00-00
BluetoothConnector -c 00-00-00-00-00-00
```

To disconnect:
##### To disconnect
```
BluetoothConnector --disconnect 00-00-00-00-00-00
BluetoothConnector -d 00-00-00-00-00-00
```

##### Notification Center
<img width=300 alt="screen shot 2019-01-27 at 4 51 16 pm" src="https://dsc.cloud/felix/Screen-Shot-2019-01-27-at-5.04.23-PM.png">

You can have BluetoothConnector send a notification to say what it did (connect or disconnect), if the action succeeded or get an error description if something goes wrong

```
BluetoothConnector 00-00-00-00-00-00 --notify
```

To reduce Notification Center pollution, I'd recommend turning off "Show in Notification Center" for the Script Editor app in the Notifications system preferences:

<img width="480" alt="screen shot 2019-01-27 at 4 51 16 pm" src="https://user-images.githubusercontent.com/4634735/51807529-f0430780-2255-11e9-9bc3-94205ea033ae.png">

#### With Automator to bind a shortcut to it (this is how I'm using it)
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).

Expand Down

0 comments on commit dbbc87b

Please sign in to comment.