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,7 +3,7 @@
|
|||
|
||||
#!/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
|
||||
|
|
Loading…
Reference in a new issue