FollieHiyuki-dotfiles/home/.config/polybar/nord/bluetooth.sh

14 lines
242 B
Bash
Raw Normal View History

2021-02-13 11:28:59 -05:00
#!/bin/sh
if [ $(bluetoothctl show | grep "Powered: yes" | wc -c) -eq 0 ]
then
echo ""
else
if [ $(echo info | bluetoothctl | grep 'Device' | wc -c) -eq 0 ]
then
echo "%{F#bf616a}"
else
echo "%{F#81a1c1}"
fi
fi