On Thu, 2004-06-17 at 22:58, Micha Feigin wrote:
> I have a few multimedia keys on my laptop (4) which I know the key codes
> for (223, 160, 174, 176) and I would like to attach to actions using
> fvwm. Is this possible?
>
> They are currently handled using lineakd, but 5M for handling 4 key
> codes seems like too much for me.
In my ~/.Xmodmap (see notes at end of message):
keycode 222 = XF86PowerOff
keycode 223 = XF86Sleep
keycode 227 = XF86WakeUp
This is pretty self explanatory, and you can find XF86-specific key
names (where there are symbols for several 'multimedia' keyboard keys)
in /usr/X11R6/include/X11/XF86keysym.h. More generic keys exist in
/usr/X11R6/include/X11/keysymdef.h. A friendlier listing of the keys
probably exists, but I don't know of one offhand.
In my fvwm2rc:
Key XF86PowerOff A A Exec xscreensaver-command -lock
Key XF86Sleep A A Exec ~/.local/bin/monoff
Again, this is pretty self explanatory--the strangest part is difference
between the REAL key symbol and the define in the header
(XF86XK_PowerOff vs. XF86PowerOff.)
Notes:
You may have to run 'xmodmap ~/.Xmodmap' manually from your
.xsession/.xinitrc/etc.
GNOME 2.6 is evil, and if you're using it, ti will summarily eat
anything you've changed with xmodmap when it starts gnome-daemon.
HTH,
--
Ben Winslow <rain_at_bluecherry.net>
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Fri Jun 18 2004 - 01:46:39 BST