Re: FVWM: Key Bindings ...

From: Tim Phipps <tim_at_quadrics.com>
Date: Tue, 25 May 1999 15:28:01 +0100

"Brian D. McGrew" wrote:
> I want to remap the keys on my right key pad (7-3). On the Sun systems,
> using CDE, this is done by changing the bindings on R11 through R19. What I
> can to do it make it so that when I hit the #7 on my right keypad, I will be
> taken to +0+0. When I hit the #9 key, I will be taken to +1024+0, #1 will
> take me to +0+1024, and #3 will take me to +1024+1024.
>
> If this is doable, would someone please post the modification to the
> .fvwm2rc to accomplish this?
>
fvwm can move the cursor only relative to it's current position but if
you just want to go to the corners and you don't use virtual pages then
it is possible.

CursorMove 100 100 will zoom the cursor into the corner (if you have
virtual pages then it will just move the viewport down and right by one
page).

You can bind this to the keypad with
Key KP_7 A A CursorMove -100 -100
Key KP_9 A A CursorMove 100 -100
Key KP_3 A A CursorMove 100 100
Key KP_1 A A CursorMove -100 100

Your keyboard may not work with KP_7 etc. If it doesn't try running xev
an seeing what it prints out when you hit #7 in it. I get

KeyPress event, serial 17, synthetic NO, window 0x2000001,
    root 0x2a, subw 0x0, time 105397715, (142,-2), root:(1006,341),
    state 0x0, keycode 118 (keysym 0xffb7, KP_7), same_screen YES,
    XLookupString gives 1 characters: "7"

Cheers,
Tim.
--
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 Tue May 25 1999 - 09:29:36 BST

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