Re: FVWM: Mapping win95 keys to FVWM functions

From: Dan Niles <dan_at_more.net>
Date: Mon, 17 Mar 1997 07:52:50 -0600

First, you will need to use xev to find out the keycode of the win95
keys, as someone else mentioned. The actual value of the keys will not
necessarily be the same on all computers. My work and home computers
have different keycodes.

Another poster mentioned how to bind a function key to a win95 key.
I find it more useful to use the win95 keys as a modifiers. What I do
is hit the win95 key (like a shift key) and then some other key to
have it do window operations.

Here is my .xmodmaprc file

--------------- .xmodmaprc -------------------
! Add mod5 (Windows '95 icon key)
clear mod5
keycode 115 = Super_L
keycode 116 = Super_R
add mod5 = Super_L Super_R
--------------- End .xmodmaprc -------------------

The 115 and 116 will probably be different on your system. Then in my
.xesssion file (ran automaticaly), I put

xmodmap $HOME/.xmodmaprc

Now the win95 keys are mod 5. Here are some lines from my .fvwm2rc.

# press arrow + Mod5 anywhere, and scroll by 1 page
Key Left A 5 Scroll -100 0
Key Right A 5 Scroll +100 +0
Key Up A 5 Scroll +0 -100
Key Down A 5 Scroll +0 +100

Key i A 5 Iconify
Key l A 5 Lower
Key q A 5 Popup Quit-Verify
Key r A 5 Raise
Key t A 5 RaiseLower
Key x A 5 Exec xlock -mode random

Hope you find this useful.

Dan Niles

-- 
#--------------------------------#
# Dan Niles      Signatures      #
# dan_at_more.net   should be small #
#--------------------------------#
--
Visit the official FVWM web page at <URL:http://www.hpc.uh.edu/fvwm/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_hpc.uh.edu.
To report problems, send mail to fvwm-owner_at_hpc.uh.edu.
Received on Mon Mar 17 1997 - 07:53:42 GMT

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:38:00 BST