Files
dotfiles/polybar/bluetooth_toogle.sh
2024-02-02 15:22:58 +01:00

7 lines
135 B
Bash

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