add bluetooth module to new bar

fix dymanic colors for bluetooth module
This commit is contained in:
ksyasuda
2021-11-15 14:57:06 -08:00
parent 2040c98abd
commit 9abd3b77cf
5 changed files with 145 additions and 8 deletions

View File

@@ -183,7 +183,7 @@ toggle_trust() {
# Useful for status bars like polybar, etc.
print_status() {
if power_on; then
printf ''
echo "%{F#A3BE8C} %{F-}"
mapfile -t paired_devices < <(bluetoothctl paired-devices | grep Device | cut -d ' ' -f 2)
counter=0
@@ -203,7 +203,7 @@ print_status() {
done
printf "\n"
else
echo ""
echo "%{F#EC7875} %{F-}"
fi
}