Re: FVWM: Key Binding

From: Dan Astoorian <djast_at_ppp12.utopia.csas.com>
Date: Tue, 12 Aug 1997 15:32:12 -0400

On Tue, 12 Aug 1997 13:52:02 EDT, Dan Espen writes:
>The Props key's default keysym is "F13".
>
>My key binding:
>
>Key F13 R A Beep
>
>You can figure this out with "xev" but I recommend using "xkeycaps".
>A search should turn it up.

Some further notes about Sun type 5 keyboards....

In addition, type 5 keyboards also have a few keys which, by default
under Solaris 2.4, don't have keysyms--in particular, the power
management keys in the top right hand corner.

These keys can also be assigned to actions in fvwm, but they must first
be mapped to keysyms with xmodmap. For instance, I have a file named
".Xmodmap-sun" containing the lines
    keycode 52 = IA1
    keycode 9 = IA2
    keycode 11 = IA3
    keycode 55 = IA4
    keycode 22 = IA5

By running the command "xmodmap .Xmodmap-sun," the four power management
keys get named IA1 through IA4, and the unlabeled key between "Help" and
"F1" gets named IA5.

I then bind these to actions in my fvwm2 config file:

    DestroyFunc StartWorkman
    AddToFunc StartWorkman "I" Next [workman] Exec workman -s play
    + "I" None [workman] Exec workman -iconic

    Key IA1 A N Exec workman -s pause
    Key IA1 A S Function StartWorkman
    Key IA2 A N Exec workman -s back
    Key IA3 A N Exec workman -s fwd
    Key IA4 A N Exec workman -s stop
    Key IA4 A S Exec workman -s eject

    Key IA5 A N WarpTo FvwmPager 10 10 1

Note that xmodmap only needs to be used for keys which do not have a
keysym; xev will tell you whether a key is bound to a keysym, and gives
you the keycode you need to supply to xmodmap in order to assign one;
however, I believe the five keys above are the only unnamed ones under
Solaris 2.4. If you don't like the names IA1-IA5, the file
<X11/keysymdef.h>, or /usr/lib/X11/XKeysymDB, lists the available keysym
names; pick any that aren't being used. See the man page for xmodmap
for details.

Hope this helps,

-- People shouldn't think that it's better to have
Dan Astoorian loved and lost than never loved at all. It's
http://www.utopia.csas.com not, it's better to have loved and won. All
djast_at_utopia.csas.com the other options really suck. --Dan Redican

--
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 Tue Aug 12 1997 - 15:26:01 BST

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