Dots/configs/eww/scripts/bluetooth
2023-04-19 11:04:08 +01:00

11 lines
213 B
Bash
Executable file

#!/usr/bin/env bash
if [ $(bluetoothctl show | grep "Powered: yes" | wc -c) -eq 0 ]; then
echo "0"
else
if [ $(echo info | bluetoothctl | grep 'Device' | wc -c) -eq 0 ]; then
echo "1"
else
echo "2"
fi
fi