From 23517fffbfe4c87110617591917e2b14f0a1dcdf Mon Sep 17 00:00:00 2001 From: SinTan1729 Date: Fri, 3 Dec 2021 20:10:59 -0600 Subject: [PATCH] improved bluetooth toggle --- bluetooth-toggle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bluetooth-toggle b/bluetooth-toggle index dfa09b6..6c3583f 100644 --- a/bluetooth-toggle +++ b/bluetooth-toggle @@ -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 \ No newline at end of file