This is a fairly common keystroke, make it work using the FvwmForm module. It doesn't seem to quite grab the focus straight away for some reason and needs the pointer to be moved slightly. --- bindings | 1 + bindings-functions | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/bindings b/bindings index 5c29870..47a9143 100644 --- a/bindings +++ b/bindings @@ -238,6 +238,7 @@ AFuncPointerKeyCompositorCmd d A "sma PagerMode" FuncKeyCompositorWinCmd x AFuncScaleFullScreen # Normal window operation +FuncKeyWindowWinCmd F2 "FvwmForm FvwmForm-RunCmd" FuncKeyWindowWinCmd F4 "Close" FuncKeyWindowWinCmd Delete "Close" FuncKeyWindowWinShiftCmd Delete "Destroy" diff --git a/bindings-functions b/bindings-functions index c3c7dcb..3accde6 100644 --- a/bindings-functions +++ b/bindings-functions @@ -166,6 +166,21 @@ DestroyFunc AFuncAddSelectRegion AddToFunc AFuncAddSelectRegion + I ModuleWindowOperation FvwmCompositor AddSelectWinRegion CROSS_HAIR +# run command form +DestroyModuleConfig FvwmForm-RunCmd: * + *FvwmForm-RunCmd: WarpPointer + *FvwmForm-RunCmd: Next [FvwmForm-RunCmd] focus + *FvwmForm-RunCmd: Line center + *FvwmForm-RunCmd: Text "Run Command" + *FvwmForm-RunCmd: Line center + *FvwmForm-RunCmd: Text "Command" + *FvwmForm-RunCmd: Input Command 20 "" + *FvwmForm-RunCmd: Line center + *FvwmForm-RunCmd: Button quit "Run" ^M + *FvwmForm-RunCmd: Command Exec exec $(Command) & + *FvwmForm-RunCmd: Button quit "Cancel" ^[ + *FvwmForm-RunCmd: Command Nop + # --------------------------------------------------------------------------- # 2. Mouse on the Root window #---------------------------------------------------------------------------- -- debian.1.5.6.1 _______________________________________________ Metisse mailing list [email protected] http://lists.lri.fr/mailman/listinfo/metisse
