diff --git a/bluetooth-toggle b/bluetooth-toggle index 6c3583f..659c19c 100644 --- a/bluetooth-toggle +++ b/bluetooth-toggle @@ -6,5 +6,8 @@ if [ $(bluetoothctl show | grep Powered | grep -c yes) -eq 1 ]; then bluetoothctl power off else + if [ $(rfkill --output-all | grep bluetooth | grep -c blocked) -ne 0 ]; then + rfkill unblock bluetooth + fi bluetoothctl power on fi \ No newline at end of file