diff options
author | 2020-12-03 01:02:31 +0100 | |
---|---|---|
committer | 2020-12-03 01:02:31 +0100 | |
commit | b31f48d09f786af5c1a3eb8bfb52cfb0490bda28 (patch) | |
tree | 42375d84539384b15ce8ecfa6accfd19453274c9 /bluetooth | |
parent | e2219fed326e3a1e7b51f874cd3875d21ea869b7 (diff) | |
download | status_blocks-b31f48d09f786af5c1a3eb8bfb52cfb0490bda28.tar.gz status_blocks-b31f48d09f786af5c1a3eb8bfb52cfb0490bda28.tar.bz2 status_blocks-b31f48d09f786af5c1a3eb8bfb52cfb0490bda28.zip |
init comit
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; |