[FIX] fixed nerdfont xmobar deprecated icons

This commit is contained in:
Afonso Franco 2023-05-19 12:22:02 +01:00
parent e253c1fbe5
commit cb17a63519
Signed by: afonso
SSH key fingerprint: SHA256:JiuxZNdA5bRWXPMUJChI0AQ75yC+cXY4xM0IaVwEVys
4 changed files with 22 additions and 23 deletions

View file

@ -2,14 +2,14 @@
regex="([0-9A-Z]*:)+"
DEVICES=$(bluetoothctl devices)
ICON=""
ICON="󰂲"
COLOR="#696B71"
for DEVICE in $DEVICES
do
if [[ $DEVICE =~ $regex ]]; then
STATUS=$(bluetoothctl info $DEVICE | grep "Connected" | awk '{print $2}')
if [ $STATUS = "yes" ]; then
ICON=""
ICON="󰂱"
COLOR="#DFDFDF"
fi
fi