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:
parent
212165519a
commit
23517fffbf
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue