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

12 lines
244 B
Bash
Executable file

#!/bin/bash
#!/bin/sh
if [ $(bluetoothctl show | grep "Powered: yes" | wc -c) -eq 0 ]
then
echo "%{F#66ffffff}"
else
if [ $(echo info | bluetoothctl | grep 'Device' | wc -c) -eq 0 ]
then
echo ""
fi
echo "%{F#73fa91}"
fi