bash-scripts/bttoggle.sh

11 lines
243 B
Bash
Raw Permalink Normal View History

2024-01-03 22:22:09 +01:00
#!/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