1
0
Fork 0
mirror of https://github.com/SinTan1729/random.git synced 2024-12-27 05:28:37 -06:00

improved bluetooth toggle

This commit is contained in:
Sayantan Santra 2021-12-03 20:10:59 -06:00
parent 212165519a
commit 23517fffbf

View file

@ -3,7 +3,7 @@
#!/bin/bash #!/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 bluetoothctl power off
else else
bluetoothctl power on bluetoothctl power on