From dbbc87b84e16a6a4c658642f91cf116ba30b2a88 Mon Sep 17 00:00:00 2001 From: Felix Lapalme Date: Sun, 27 Jan 2019 17:09:48 -0500 Subject: [PATCH] Update README to explain the --notify parameter --- README.md | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 5d78c59..6c892a7 100644 --- a/README.md +++ b/README.md @@ -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 +screen shot 2019-01-27 at 4 51 16 pm + +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: + +screen shot 2019-01-27 at 4 51 16 pm + #### 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).