Commit 6311ffe3 authored by Glen Mével's avatar Glen Mével

fixed garbage output in `bell`

parent eb4f2ec4
......@@ -111,13 +111,13 @@ function paplay_bell()
declare -i percent_max="$percent_left"
[ "$percent_left" -lt "$percent_right" ] && percent_max="$percent_right"
[ "$percent" -eq 0 ] && percent="${percent_max/#0/"$X_DEFAULT_VOLUME"}"
amixer -D pulse set Master "$percent%" on || true
amixer --quiet -D pulse set Master "$percent%" on || true
fi
# Play the sound file.
paplay "$AUDIO_FILE" || return 1
if [ "$has_amixer" = true ] ; then
# Restore the sound settings.
amixer -D pulse set Master "$percent_left%,$percent_right%" "$enabled_left,$enable_right" || true
amixer --quiet -D pulse set Master "$percent_left%,$percent_right%" "$enabled_left,$enable_right" || true
fi
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment