diff --git a/bluetooth-toggle b/bluetooth-toggle index dfa09b6..6c3583f 100644 --- a/bluetooth-toggle +++ b/bluetooth-toggle @@ -3,8 +3,8 @@ #!/bin/bash -if [ $(bluetoothctl show "A0:AF:BD:4F:D8:63" | grep Powered | grep -c yes) -eq 1 ]; then +if [ $(bluetoothctl show | grep Powered | grep -c yes) -eq 1 ]; then bluetoothctl power off else bluetoothctl power on -fi +fi \ No newline at end of file