dotfiles/polybar/polybar_scripts/toggle_bluetooth.sh
2022-05-25 21:18:22 +01:00

7 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