From c990b20a8b6db9e6190e0ce775f0cc5ecb4bf1bb Mon Sep 17 00:00:00 2001 From: 0scar Date: Wed, 22 Mar 2023 12:06:00 +0100 Subject: Update statusbar scripts --- .local/bin/statusbar/bluetoothinfo | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to '.local/bin/statusbar/bluetoothinfo') diff --git a/.local/bin/statusbar/bluetoothinfo b/.local/bin/statusbar/bluetoothinfo index 708f51e..80f85ab 100755 --- a/.local/bin/statusbar/bluetoothinfo +++ b/.local/bin/statusbar/bluetoothinfo @@ -13,7 +13,7 @@ DAEMONSTATUS="$(systemctl is-active bluetooth.service)" if [ "$DAEMONSTATUS" == "inactive" ]; then echo -en '\x0c\uf5b1\x0b' case $ARG in - 1) systemctl start bluetooth.service;; + 1) systemctl start bluetooth.service || notify-send 'Bluetooth' 'Please start the bluetooth service by running `systemctl start bluetooth.service`';; esac else CONNECTED="$(bluetoothctl info | awk '/Name/{$1=""; print $0}')" @@ -31,3 +31,9 @@ else esac fi fi + +if [ "${XDG_SESSION_TYPE}" = "wayland ];then + sigblock -b bt +else + sigdwmblocks 4 +fi -- cgit v1.3