From 58b9582e0f46ad691f082c974ee70bae725dbd08 Mon Sep 17 00:00:00 2001 From: 0scar Date: Thu, 8 Jul 2021 15:44:03 +0200 Subject: Update user scripts --- .local/bin/bt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to '.local/bin/bt') 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.*\" >/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 -- cgit v1.3