FollieHiyuki-dotfiles/home/.config/polybar/onedark/bluetooth.sh
2021-02-13 19:28:59 +03:00

14 lines
242 B
Bash
Executable File

#!/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#e5c07b}"
else
echo "%{F#61afef}"
fi
fi