Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Sep 2009 19:34:20 +0200
From:      Roland Smith <rsmith@xs4all.nl>
To:        Eitan Adler <eitanadlerlist@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: rebinding keys to functions
Message-ID:  <20090914173420.GB69286@slackbox.xs4all.nl>
In-Reply-To: <a0777e080909140952r18cc88b3n2b3ff1456c2542c7@mail.gmail.com>
References:  <a0777e080909140952r18cc88b3n2b3ff1456c2542c7@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--KFztAG8eRSV9hGtP
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Sep 14, 2009 at 04:52:56PM +0000, Eitan Adler wrote:
> My laptop has a bunch of volume-up/down/mute internet/mail/etc keys.
> How do I map each of them to run a specific shell command when pressed?

That depends on a couple of things (assuming you're running the X window
system, I don't know if it is even possible on the console).

First you have to make sure that you actually can see the key signals. In X
you can test that with xev(1).

How you can bind keypresses to commands in X depends on the window manager =
or
desktop environment you are using. See the revelant documentation.

On my laptop (centrino 2 platform, PM 45 chipset), using Fn combination wor=
ks
to change speaker volume and screen brightness, but this is done outside the
OS. The X server doesn't even 'see' those keypresses.

Roland
--=20
R.F.Smith                                   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)

--KFztAG8eRSV9hGtP
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.13 (FreeBSD)

iEYEARECAAYFAkqufpwACgkQEnfvsMMhpyVE9gCgiJqVxYyCy07F0CsHYUcTbH/9
xF4AoJprK1gG+bk3KuU26Vur8szLa5vK
=3oAu
-----END PGP SIGNATURE-----

--KFztAG8eRSV9hGtP--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090914173420.GB69286>