Files
crylia-theme/polybar/scripts/bluetooth_toogle.sh
2021-10-04 23:17:58 +02:00

11 lines
164 B
Bash
Executable File

#!/bin/bash
STATE=$(bluetoothctl show | grep Powered)
if [[ $STATE == *"yes" ]]
then
echo $(bluetoothctl power off)
else
echo $(bluetoothctl power on)
fi