|
@ -10,23 +10,23 @@ dwm_alsa () { |
|
|
VOL=$(amixer get Master | tail -n1 | sed -r "s/.*\[(.*)%\].*/\1/") |
|
|
VOL=$(amixer get Master | tail -n1 | sed -r "s/.*\[(.*)%\].*/\1/") |
|
|
if [ "$IDENTIFIER" = "unicode" ]; then |
|
|
if [ "$IDENTIFIER" = "unicode" ]; then |
|
|
if [ "$VOL" -eq 0 ]; then |
|
|
if [ "$VOL" -eq 0 ]; then |
|
|
printf "[🔇 %s]\n" "$VOL]\n" |
|
|
|
|
|
|
|
|
printf "[🔇]\n" |
|
|
elif [ "$VOL" -gt 0 ] && [ "$VOL" -le 33 ]; then |
|
|
elif [ "$VOL" -gt 0 ] && [ "$VOL" -le 33 ]; then |
|
|
printf "[🔈 %s]\n" "$VOL" |
|
|
|
|
|
|
|
|
printf "[🔈 %s%%]\n" "$VOL" |
|
|
elif [ "$VOL" -gt 33 ] && [ "$VOL" -le 66 ]; then |
|
|
elif [ "$VOL" -gt 33 ] && [ "$VOL" -le 66 ]; then |
|
|
printf "[🔉 %s]\n" "$VOL" |
|
|
|
|
|
|
|
|
printf "[🔉 %s%%]\n" "$VOL" |
|
|
else |
|
|
else |
|
|
printf "[🔊 %s]\n" "$VOL" |
|
|
|
|
|
|
|
|
printf "[🔊 %s%%]\n" "$VOL" |
|
|
fi |
|
|
fi |
|
|
else |
|
|
else |
|
|
if [ "$VOL" -eq 0 ]; then |
|
|
if [ "$VOL" -eq 0 ]; then |
|
|
printf "[VOL %s]\n" "$VOL]\n" |
|
|
|
|
|
|
|
|
printf "[MUTE]\n" |
|
|
elif [ "$VOL" -gt 0 ] && [ "$VOL" -le 33 ]; then |
|
|
elif [ "$VOL" -gt 0 ] && [ "$VOL" -le 33 ]; then |
|
|
printf "[VOL %s]\n" "$VOL" |
|
|
|
|
|
|
|
|
printf "[VOL %s%%]\n" "$VOL" |
|
|
elif [ "$VOL" -gt 33 ] && [ "$VOL" -le 66 ]; then |
|
|
elif [ "$VOL" -gt 33 ] && [ "$VOL" -le 66 ]; then |
|
|
printf "[VOL %s]\n" "$VOL" |
|
|
|
|
|
|
|
|
printf "[VOL %s%%]\n" "$VOL" |
|
|
else |
|
|
else |
|
|
printf "[VOL %s]\n" "$VOL" |
|
|
|
|
|
|
|
|
printf "[VOL %s%%]\n" "$VOL" |
|
|
fi |
|
|
fi |
|
|
fi |
|
|
fi |
|
|
} |
|
|
} |
|
|