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 # Latest change: Sun May 14 15:03:53 CEST 2006 [mika]
8 ################################################################################
10 . /etc/grml/lsb-functions
15 if [ -f ~/.aumixtmp ] ; then
16 amixer set PCM unmute &>/dev/null ; RC=$?
17 if [ -n "$DISPLAY" ] ; then
18 einfo "$UNMUT" ; eend $?
20 osd_cat --delay=2 -c orange -A center -p middle -f "-misc-fixed-medium-r-normal-*-*-150-*-*-c-*-iso8859-15"
22 einfo "$UNMUT" ; eend $RC
27 amixer set PCM mute &>/dev/null ; RC=$?
28 if [ -n "$DISPLAY" ] ; then
29 einfo "$MUT" ; eend $RC
31 osd_cat --delay=2 -c orange -A center -p middle -f "-misc-fixed-medium-r-normal-*-*-150-*-*-c-*-iso8859-15"
33 einfo "$MUT" ; eend $RC
37 ## END OF FILE #################################################################