On 25 Dec 2003 22:30:14 +0100, Frank Gruellich wrote:
>
> * Mikhael Goikhman <migo_at_homemail.com> 25. Dec 03
> > On 25 Dec 2003 21:31:12 +0100, Frank Gruellich wrote:
> > > * Erik Steffl <steffl_at_bigfoot.com> 22. Dec 03
> > > > Frank Gruellich wrote:
> > > > > [screen-like fvwm]
> > > > [win key]
> > > I will use it, nevertheless this is not exactly what I am looking for.
> > > Can I make fvwm to react only if I start with a special key sequence?
> > DestroyFunc Ctrl-Alt-F-Action
> > AddToFunc Ctrl-Alt-F-Action
> > + I Key X A A Exec xterm
> > + I Key C A A Exec xcalc
> > # optionally put some flash window
> > + I Schedule 5000 Key X A A -
> > + I Schedule 5000 Key C A A -
> >
> > # Press Ctrl-Alt-F and then "x" or "c"
> > Key F A CM Ctrl-Alt-F-Action
>
> Oh, this is kinda neat, thank you very much.
>
> > With this, you should press a key in 5 seconds otherwise it is timed out.
>
> The 5s are not perfect, but I will deal with it (or 2s). Perfect would
> be if I could press the special key (i.e. C-M-f) and it waits (for ever)
> until I press the next key. If it is a bound key, exec the command and
> remove all key bindings, if not only remove all key bindings (perfect
> screen behaviour).
And what happens if you mistakenly press the combination? I am almost
sure that a timeout is needed, at least I would like it.
But I see no problem to do what you want, i.e. to lock the keyboard
(actually some letter keys) until one of them is pressed. For 2.4.x+:
DestroyFunc DisableKeysAndDo
AddToFunc DisableKeysAndDo
+ I Key Escape A A -
+ I Key X A A -
+ I Key C A A -
+ I $*
DestroyFunc Ctrl-Alt-F-Dispatcher
AddToFunc Ctrl-Alt-F-Dispatcher
+ I Key Escape A A DisableKeysAndDo Nop
+ I Key X A A DisableKeysAndDo Exec xterm
+ I Key C A A DisableKeysAndDo Exec xcalc
Key F A CM Ctrl-Alt-F-Dispatcher
Regards,
Mikhael.
--
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 Thu Dec 25 2003 - 18:14:56 GMT