ix volume script

This commit is contained in:
Alexander Rosenberg 2023-05-06 14:31:12 -07:00
parent 41c41b7702
commit 294ad801e4
Signed by: Zander671
GPG Key ID: 5FD0394ADBD72730

View File

@ -5,10 +5,10 @@ local icon
if [[ "$(pamixer --get-mute)" = "true" ]]; then if [[ "$(pamixer --get-mute)" = "true" ]]; then
icon='󰸈' icon='󰸈'
elif ((${volume} > 50)); then elif ((${volume} > 50)); then
icon='󰖀' icon='󰕾'
elif ((${volume} > 0)); then elif ((${volume} > 0)); then
icon='󰖀' icon='󰖀'
else else
icon='󰕾' icon=''
fi fi
printf '%s%3d%%\n' "${icon}" "${volume}" printf '%s%3d%%\n' "${icon}" "${volume}"