2 # Filename: XF86AudioRaiseVolume
3 # Purpose: raise 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 # Latest change: Die Aug 01 01:18:11 CEST 2006 [mika]
8 ################################################################################
10 . /etc/grml/lsb-functions
14 if ! [ "$RC" = 0 ] ; then
15 eend "Error running 'aumix -v +5'" ; eend 1
18 VOLUME=$(aumix -q | awk -F, '/vol/ {print $2}')
20 if [ -n "$DISPLAY" ] ; then
21 einfo "Raised audio volume to${VOLUME}" ; eend $?
22 osd_cat -b percentage -P $VOLUME -d 2 -c orange -A center -p middle
24 einfo "Raised audio volume to${VOLUME}" ; eend $RC
27 ## END OF FILE #################################################################