l i n u x - u s e r s - g r o u p - o f - d a v i s
Next Meeting:
July 7: Social gathering
Next Installfest:
Latest News:
Jun. 14: June LUGOD meeting cancelled
Page last updated:
2003 Apr 09 13:29

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] gnome hotkeys
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] gnome hotkeys

On Wed, Apr 09, 2003 at 02:33:03AM -0400, Mike Simons wrote:
> On Tue, Apr 08, 2003 at 10:45:42PM -0700, Ryan wrote:
> > Is there a way I can make gnome recognize a key combination to mute my
> > volume? I don't see it as an option in gnomecc to do this.
> 'Run shell command'
>   Find a command to adjust the the volume... mute and un-mute.

  If all you want is a toggle switch, the script below should flip flop.

  If you don't have cam here are some commands that do the same.

mute            unmute
====            ======
cam -v 0,0      cam -v 75,75
aumix -v 0      aumix -v 75
gom -l 0        gom -l 75

  Alsa-utils should also contain commands to do the magic, under alsa
there is a concept of a 'muted' channel, so you shouldn't have to do 
anything fancy like below, you just say mute and unmute...
  I don't have a alsa based machine booted right now... so there is no

      Mike Simons

Simple toggle example:
#! /bin/bash

if [ -f ~/.camrc ]; then
  cam -get
  rm ~/.camrc
  cam -save
  cam -v 0,0

exit 0
GPG key: http://simons-clan.com/~msimons/gpg/msimons.asc

Attachment: pgp00007.pgp
Description: PGP signature

LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
Appahost Applications
For a significant contribution towards our projector, and a generous donation to allow us to continue meeting at the Davis Library.