On 02/08/07, Jason Dobies <[EMAIL PROTECTED]> wrote: > What I'm thinking is another set of key bindings that take effect on the > second desktop. The key mapping would be the same, but the executed > command would differ by desktop. Those key bindings would execute the > ssh command at the start of the aterm (or whatever else I use) so it'll > automatically work as if the second desktop belongs to the second > machine (in a way).
Do you per desk bindings? You want something like this: DestroyModuleConfig a:* *a: new_page "Silent MapKeyBindings-$$[desk.n]" KillModule FvwmEvent a Module FvwmEvent a DestroyFunc MapKeyBindings-0 AddToFunc MapKeyBindings-0 + I ClearBindings + I Key ... + I Key ... Then for the desk you want the bindings to be redefined for (desk 0 in this case) such that a call to 'ClearBindings' that clears previous keybindings and then defines keys for that desk. When you switch back to another desk, you'll then have to make sure you do the same thing as above to restore them. Putting these in a function is also the best thing to do. -- Thomas Adam
