mirror of
https://github.com/SinTan1729/random.git
synced 2024-12-25 20:58:37 -06:00
improved bluetooth toggle
This commit is contained in:
parent
212165519a
commit
23517fffbf
1 changed files with 2 additions and 2 deletions
|
@ -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
|
Loading…
Reference in a new issue