2 # Filename: XF86AudioMute
3 # Purpose: mute and restore audio settings
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
14 if [ -f ~/.aumixtmp ] ; then
15 amixer set PCM unmute &>/dev/null ; RC=$?
16 if [ -n "$DISPLAY" ] ; then
17 einfo "$UNMUT" ; eend $?
19 osd_cat --delay=2 -c orange -A center -p middle -f "-misc-fixed-medium-r-normal-*-*-150-*-*-c-*-iso8859-15"
21 einfo "$UNMUT" ; eend $RC
26 amixer set PCM mute &>/dev/null ; RC=$?
27 if [ -n "$DISPLAY" ] ; then
28 einfo "$MUT" ; eend $RC
30 osd_cat --delay=2 -c orange -A center -p middle -f "-misc-fixed-medium-r-normal-*-*-150-*-*-c-*-iso8859-15"
32 einfo "$MUT" ; eend $RC
36 ## END OF FILE #################################################################