11 lines
243 B
Bash
11 lines
243 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
if bluetoothctl show | grep 'Powered: yes' ; then
|
||
|
bluetoothctl power off
|
||
|
echo 'bluetooth off'
|
||
|
else
|
||
|
bluetoothctl power on
|
||
|
# notify-send -i network-wireless-none "Wireless" "Wireless enabled"
|
||
|
echo 'bluetooth on'
|
||
|
fi
|