diff options
Diffstat (limited to 'bluetooth')
-rwxr-xr-x | bluetooth | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bluetooth b/bluetooth new file mode 100755 index 0000000..7354fc3 --- /dev/null +++ b/bluetooth @@ -0,0 +1,5 @@ +#!/bin/sh +STATUS=$(systemctl is-active bluetooth) +[ "$STATUS" != "active" ] && exit +HEADPHONES=$(bluetoothctl info 38:18:4C:59:C1:B0 | grep "Connected: yes") +if [ "$HEADPHONES" ]; then echo "\003\001"; else echo "\003\001"; fi; |