voidrice/.local/bin/polybar_scripts/toggle_bluetooth.sh
2020-02-12 13:29:39 -05:00

8 lines
136 B
Bash
Executable File

#!/bin/sh
if [ $(bluetoothctl show | grep "Powered: yes" | wc -c) -eq 0 ]
then
bluetoothctl power on
else
bluetoothctl power off
fi