Update sound-control.sh

This commit is contained in:
Alexander Rosenberg 2025-02-04 22:48:03 -08:00
parent ee1321e857
commit fef223a62f
Signed by: Zander671
GPG Key ID: 5FD0394ADBD72730

View File

@ -5,10 +5,12 @@ function print-volume {
local icon 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='󰖀'
elif ((${volume} == 0)); then
icon='󰕿'
else else
icon='' icon=''
fi fi