diff options
| author | 0scar <qgt268@alumni.ku.dk> | 2023-03-22 11:06:00 +0000 |
|---|---|---|
| committer | 0scar <qgt268@alumni.ku.dk> | 2023-03-22 11:06:00 +0000 |
| commit | c990b20a8b6db9e6190e0ce775f0cc5ecb4bf1bb (patch) | |
| tree | 06f8bcbe92a2f27858e7e431799a13dbcd7cd3e1 /.local/bin/statusbar/bluetoothinfo | |
| parent | fd8a737134eb92e204aa632731ea303fed1dc1b0 (diff) | |
Update statusbar scripts
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 |
