Dots/polybar/scripts/bluetooth.sh
2022-04-19 10:34:46 +01:00

11 lines
215 B
Bash
Executable file

#!/bin/sh
if [ $(bluetoothctl show | grep "Powered: yes" | wc -c) -eq 0 ]
then
echo "%{F#666}"
else
if [ $(echo info | bluetoothctl | grep 'Device' | wc -c) -eq 0 ]
then
echo ""
fi
echo ""
fi