diff options
Diffstat (limited to '.local/bin/statusbar/bluetoothinfo')
| -rwxr-xr-x | .local/bin/statusbar/bluetoothinfo | 8 |
1 files changed, 7 insertions, 1 deletions
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 |
