FVWM: Bind key sequences

2012-04-28 Thread Andre Majorel
Is there a way to bind key *sequences* to functions ? EG [kp-*][1] to switch to page (0,0), etc. Thanks in advance. -- André Majorel http://www.teaser.fr/~amajorel/

Re: FVWM: Bind key sequences

2012-04-28 Thread Thomas Adam
On 28 April 2012 11:49, Andre Majorel wrote: > Is there a way to bind key *sequences* to functions ? EG > [kp-*][1] to switch to page (0,0), etc. > > Thanks in advance. Define what you mean by "sequence" in more detail. You can already bind KP_* keys. -- Thomas Adam

Re: FVWM: Bind key sequences

2012-04-28 Thread Dan Espen
Andre Majorel writes: > Is there a way to bind key *sequences* to functions ? EG > [kp-*][1] to switch to page (0,0), etc. The best way to bind sequences is to use a menu with hot keys. kp-* to bring up the menu, 1 to select a menu entry that has 1 assigned as a short cut. I actually use kp-*

Re: FVWM: Bind key sequences

2012-04-28 Thread Thomas Adam
On 28 April 2012 13:25, Dan Espen wrote: > Andre Majorel writes: > >> Is there a way to bind key *sequences* to functions ? EG >> [kp-*][1] to switch to page (0,0), etc. > > The best way to bind sequences is to use a menu with hot keys. > > kp-* to bring up the menu, > 1 to select a menu entry th

Re: FVWM: Bind key sequences

2012-04-29 Thread Andre Majorel
On 2012-04-28 13:29 +0100, Thomas Adam wrote: > On 28 April 2012 13:25, Dan Espen wrote: > > Andre Majorel writes: > > > >> Is there a way to bind key *sequences* to functions ? EG > >> [kp-*][1] to switch to page (0,0), etc. > > > > The best way to bind sequences is to use a menu with hot keys.

Re: FVWM: Bind key sequences

2012-04-29 Thread Thomas Adam
On Sun, Apr 29, 2012 at 10:35:45PM +0200, Andre Majorel wrote: > Note how KP_Home must be used, even though the actual event is > KP_7. There may be a simpler way but I've had enough for > tonight. No, there isn't. It's two different keysyms, depending on whether Numlock is used. That's expected

Re: FVWM: Bind key sequences

2012-04-30 Thread Andre Majorel
On 2012-04-29 21:50 +0100, Thomas Adam wrote: > On Sun, Apr 29, 2012 at 10:35:45PM +0200, Andre Majorel wrote: > > Note how KP_Home must be used, even though the actual event is > > KP_7. There may be a simpler way but I've had enough for > > tonight. > > No, there isn't. It's two different keysy

Re: FVWM: Bind key sequences

2012-04-30 Thread Thomas Adam
On 30 April 2012 14:27, Andre Majorel wrote: > There is a race somewhere : without the delays, the FakeKeypress > in pause_pass triggers pause_numlk_{on|off}. But the main > problem is that Xterms don't see the KeyPress event. [.] Like so many programs, synthetic key events generally aren't