2022-05-25 21:18:22 +01:00
|
|
|
#!/bin/bash
|
|
|
|
#!/bin/sh
|
|
|
|
if [ $(bluetoothctl show | grep "Powered: yes" | wc -c) -eq 0 ]
|
|
|
|
then
|
2022-06-11 13:32:44 +01:00
|
|
|
echo "%{F#66ffffff}"
|
2022-05-25 21:18:22 +01:00
|
|
|
else
|
2022-06-11 13:32:44 +01:00
|
|
|
if [ $(echo info | bluetoothctl | grep 'Device' | wc -c) -eq 0 ]
|
|
|
|
then
|
|
|
|
echo ""
|
|
|
|
fi
|
|
|
|
echo "%{F#73fa91}"
|
2022-05-25 21:18:22 +01:00
|
|
|
fi
|
2022-06-11 13:32:44 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# if [ "$player_status" = "Playing" ]; then
|
|
|
|
# echo " $(playerctl metadata artist) | $(playerctl metadata title) | $(playerctl metadata album)"
|
|
|
|
# elif [ "$player_status" = "Paused" ]; then
|
|
|
|
# echo " $(playerctl metadata artist) | $(playerctl metadata title) | $(playerctl metadata album)"
|
|
|
|
# elif [ "$player_status" = "Stopped" ]; then
|
|
|
|
# echo " $(playerctl metadata artist) | $(playerctl metadata title) | $(playerctl metadata album)"
|
|
|
|
# else
|
|
|
|
# echo " Disconnected"
|
|
|
|
# fi
|