mirror of
https://github.com/SinTan1729/random.git
synced 2024-12-26 13:18:35 -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
|
#!/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
|
||||||
fi
|
fi
|
Loading…
Reference in a new issue