[vox-tech] gnome hotkeys
Mike Simons
vox-tech@lists.lugod.org
Wed, 09 Apr 2003 13:51:35 -0400
--lEGEL1/lMxI0MVQ2
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
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.
>=20
> 'Run shell command'
>=20
> 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
=3D=3D=3D=3D =3D=3D=3D=3D=3D=3D
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=20
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
example.
Later,
Mike Simons
Simple toggle example:
=3D=3D=3D=3D
#! /bin/bash
if [ -f ~/.camrc ]; then
cam -get
rm ~/.camrc
else
cam -save
cam -v 0,0
fi
exit 0
=3D=3D=3D=3D
--=20
GPG key: http://simons-clan.com/~msimons/gpg/msimons.asc
--lEGEL1/lMxI0MVQ2
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE+lF2n4Qwkn7f6rL4RAqFIAJwMpjavzDcQZMWKZWnp30przMi6/QCcD5Yp
Ge3ljq5R6pbpGdsZ4wJcUhk=
=UMny
-----END PGP SIGNATURE-----
--lEGEL1/lMxI0MVQ2--