[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

@ -3,9 +3,9 @@ MUTE=$(pactl get-sink-mute @DEFAULT_SINK@ | sed -En 's/Mute: (.)/\1/p')
VOLUME=$(pactl get-sink-volume @DEFAULT_SINK@ | grep -Po '[0-9]*%' | sed -En 's/(.)\%/\1/p' | head -n1)
if [ "$MUTE" = "yes" ]; then
echo "<fc=#696B71><fn=3></fn></fc>"
echo "<fc=#696B71><fn=3>󰖁</fn></fc>"
elif [ "$VOLUME" -le 20 ]; then
echo "<fc=#DFDFDF><fn=3>奔</fn><fn=2> $VOLUME</fn></fc>"
echo "<fc=#DFDFDF><fn=3>󰖀</fn><fn=2> $VOLUME</fn></fc>"
else
echo "<fc=#DFDFDF><fn=3></fn><fn=2> $VOLUME</fn></fc>"
echo "<fc=#DFDFDF><fn=3>󰕾</fn><fn=2> $VOLUME</fn></fc>"
fi