[ltp] Keycodes and using them

Thomas Kahle linux-thinkpad@linux-thinkpad.org
Tue, 23 Dec 2008 13:01:26 +0100


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Michael Gaber wrote:
> Hi.
> 
> Since we're just on the topic of using the various fn+f*-combos:
> i successfully managed to get bluetooth toggle back with key_bluetooth,
> which is really nice.
> 
> the other point is: on pressing fn+f[2|4|12] i get the following
> key-events reported in X: XF86ScreenSaver XF86Sleep XF86Standby
> 
> now i want to do something useful with them, like sending my box to
> s2ram/s2d/locking the screen. Could anyone tell me how to archieve this?
> I'm runninng very latest X with fluxbox on tom on a gentoo amd64 box

Hey,
In openbox, which should be similar, I have a configuration file called
"rc.xml". (located in ~/.config/openbox/rc.xml)

This has the configuration for keyboard shortcuts in a special section
which should be easy to identify.
There I have added things like

    <keybind key="XF86AudioRaiseVolume">
      <action name="Execute">
        <execute>amixer sset Master 10%+</execute>
      </action>
    </keybind>

and so on.


> 
> Greetings Michael

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAklQ0xYACgkQrpEWPKIUt7PykACcDIEjoeVzfloCcvCTSWJh5VNY
mF8AniT4xEbWJYmYc/WXFiUCuYQ1WlLL
=TDt7
-----END PGP SIGNATURE-----