diff options
| author | 0scar <qgt268@alumni.ku.dk> | 2021-07-08 13:44:03 +0000 |
|---|---|---|
| committer | 0scar <qgt268@alumni.ku.dk> | 2021-07-08 13:44:03 +0000 |
| commit | 58b9582e0f46ad691f082c974ee70bae725dbd08 (patch) | |
| tree | 3b675b3efbf66b95dd109d838a314742ce3380bd /.local/bin/bt | |
| parent | 2a4b3c6f21a92fe0f7f01c466ab37e795c399d03 (diff) | |
Update user scripts
Diffstat (limited to '.local/bin/bt')
| -rwxr-xr-x | .local/bin/bt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/.local/bin/bt b/.local/bin/bt index 2e4203d..c53ec5f 100755 --- a/.local/bin/bt +++ b/.local/bin/bt @@ -5,7 +5,7 @@ set -e # Check if bluetooth is blocked (rfkill | grep -E "bluetooth.*\<blocked\>" >/dev/null) && echo "Please check rfkill and unblock bluetooth module." && exit || true -[ "$1" = "stop" ] && systemctl stop bluetooth.service && exit +[ "$1" = "stop" ] && systemctl stop bluetooth.service && sigdwmblocks 4 && exit systemctl is-active bluetooth.service >/dev/null || systemctl start bluetooth.service [ "$(bluetoothctl show | awk '/Powered/ {print $2}')" = "no" ] && bluetoothctl power on && bluetoothctl agent on @@ -27,3 +27,5 @@ else bluetoothctl paired-devices | awk "/Device/ {if(\"$CONNECTED\"==\$3) print \"\033[1;32m\" \$2 \"\t\" \$3 \"\033[0m\"; else print \$2 \"\t\" \$3;}" fi + +sigdwmblocks 4 |
