WindowList keybindings

Problems with decorations or key/mouse bindings? Or perhaps you have a cool mouse/key binding you want to share.
User avatar
ILLUXA
Cat in the hat
Cat in the hat
Posts: 33
Joined: Sat May 28, 2016 4:07 pm
Location: $[HOME]

WindowList keybindings

Postby ILLUXA » Tue Jan 23, 2018 10:15 pm

Is it possible somehow to change WindowList keybindings?
Image

I want to be able to choose application with keyboard arrows and not only with tab/shift+tab,
when using WindowList (which was called using alt + tab).
Transcend or Die

FVWM 2.6.7, FreeBSD 11.1-RELEASE

somiaj
Administrator
Administrator
Posts: 56
Joined: Mon Nov 08, 2004 9:54 pm
Location: Idaho (USA)
Contact:

Re: WindowList keybindings

Postby somiaj » Sat Jan 27, 2018 3:38 am

ILLUXA wrote:Is it possible somehow to change WindowList keybindings?

I want to be able to choose application with keyboard arrows and not only with tab/shift+tab,
when using WindowList (which was called using alt + tab).


The WindowList is just a menu, so you can configure it like any menu. The window list does contain a SelectOnRlease option. This option makes it so if you release a key it will select the current item. So if you are holding down 'alt' due to SelectOnRelease to keep the menu open, the bindings need to affect alt-down, alt-up, etc.

Second, you you may redefine keybindings, but you can do this just like you redefine any keybinding, just use the (M)enu context. And then bind the keybindings to things like MenuMoveCursor, and so forth. You can see the defaults that are using in $PREFIX/share/fvwm/ConfigFvwmDefaults for examples of how the keybindings are defined for menus. Here you will see that alt-down in a menu will move a cursor by a full region (between + NOP line boundaries), by using MneuMoveCursor -1s, so if holding down alt and hitting down you don't get the same affect.

So you can change this behavior by seeing what is done on the defaults, or you can change the release key to one that doesn't conflict with the bindings.
-jaimos

User avatar
ILLUXA
Cat in the hat
Cat in the hat
Posts: 33
Joined: Sat May 28, 2016 4:07 pm
Location: $[HOME]

Re: WindowList keybindings

Postby ILLUXA » Sat Jan 27, 2018 8:20 am

Thanks, work for me with

Code: Select all

Key Up      M   M      MenuMoveCursor -1
Key Down    M   M      MenuMoveCursor +1
Transcend or Die

FVWM 2.6.7, FreeBSD 11.1-RELEASE


Return to “Decorations and bindings”

Who is online

Users browsing this forum: No registered users and 1 guest