bash-scripts/bttoggle.sh
2024-01-03 14:22:09 -07:00

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