X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=usr_bin%2FXF86AudioMute;fp=usr_bin%2FXF86AudioMute;h=0000000000000000000000000000000000000000;hb=65eedce6095822e21447fd8a276799f1bbc0d021;hp=a68cbef29e61dbf036740fc020af1b31bb6f0100;hpb=01e3fafa6cfa747d4fc8d21fc13df200e0ed137d;p=grml-scripts.git diff --git a/usr_bin/XF86AudioMute b/usr_bin/XF86AudioMute deleted file mode 100755 index a68cbef..0000000 --- a/usr_bin/XF86AudioMute +++ /dev/null @@ -1,36 +0,0 @@ -#!/bin/bash -# Filename: XF86AudioMute -# Purpose: mute and restore audio settings -# Authors: grml-team (grml.org), (c) Michael Prokop -# Bug-Reports: see http://grml.org/bugs/ -# License: This file is licensed under the GPL v2. -################################################################################ - -. /etc/grml/lsb-functions - -UNMUT="Sound unmuted" -MUT="Sound muted" - -if [ -f ~/.aumixtmp ] ; then - amixer set PCM unmute &>/dev/null ; RC=$? - if [ -n "$DISPLAY" ] ; then - einfo "$UNMUT" ; eend $? - echo "$UNMUT" | \ - osd_cat --delay=2 -c orange -A center -p middle -f "-misc-fixed-medium-r-normal-*-*-150-*-*-c-*-iso8859-15" - else - einfo "$UNMUT" ; eend $RC - fi - rm -f ~/.aumixtmp -else - touch ~/.aumixtmp - amixer set PCM mute &>/dev/null ; RC=$? - if [ -n "$DISPLAY" ] ; then - einfo "$MUT" ; eend $RC - echo "$MUT" | \ - osd_cat --delay=2 -c orange -A center -p middle -f "-misc-fixed-medium-r-normal-*-*-150-*-*-c-*-iso8859-15" - else - einfo "$MUT" ; eend $RC - fi -fi - -## END OF FILE #################################################################