2 # Filename: XF86AudioLowerVolume
3 # Purpose: lower audio volume
4 # Authors: grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
5 # Bug-Reports: see http://grml.org/bugs/
6 # License: This file is licensed under the GPL v2.
7 ################################################################################
9 . /etc/grml/lsb-functions
13 if ! [ "$RC" = 0 ] ; then
14 eend "Error running 'aumix -v -5'" ; eend 1
17 VOLUME=$(aumix -q | awk -F, '/vol/ {print $2}')
19 if [ -n "$DISPLAY" ] ; then
20 einfo "Lowered audio volume to${VOLUME}" ; eend $?
21 osd_cat -b percentage -P $VOLUME -d 2 -c orange -A center -p middle
23 einfo "Lowered audio volume to${VOLUME}" ; eend $?
26 ## END OF FILE #################################################################