Hello.

On kwi 11, Paul Fox wrote:
> i'm used to having a pair of keys for cycling through the windows
> on a single desktop.  the keys i use are Alt-1 and Alt-2.  when i
> use Alt-1, i go through the windows in one ordering, and with
> Alt-2, in the other ordering.  with standard fvwm i currently use
> something like this:
>  
>       Key 1 A M Next [!iconic CurrentDesk] Raise-and-Focus
>       Key 2 A M Prev [!iconic CurrentDesk] Raise-and-Focus
> 
> this causes the Raise-and-Focus function to be performed on the
> next window in the window ring which a) isn't iconic and b) is
> on the current desktop.  my "Raise-and-Focus" function looks like
> this:
>     AddToFunc       Raise-and-Focus \
>       "I"           Raise
>     + "I"           Focus
>
> i tried adding this to .fvwm-crystal/preferences/Startup, but
> it didn't work -- the "CurrentDesk" restriction seems to be
> ignored, and the windows aren't selected in a "wrapping" ring.
> any suggestions?  i really need this functionality, and can't
> find anything in the default key-bindings that does the same
> thing...

I really remember something like this already included in FVWM-Crystal some
time ago - at that time it was meant to be used as a replacement for usual
Alt+Tab list... I just can't find it in the current sources. Function names
were probably Window-Next and Window-Prev. I will need to search a bit
further.

For now, you can use this code:

DestroyFunc Raise-and-Focus
AddToFunc Raise-and-Focus
+ I Raise
+ I Focus

Key 1 A $[Mod1] Next (!Iconic, CurrentPage) Raise-and-Focus
Key 2 A $[Mod1] Prev (!Iconic, CurrentPage) Raise-and-Focus

It's not perfect, but it should work for now. The problem was with
"CurrentDesk" - in Crystal by default there is only one big desk divided to
8 pages - so you need to use "CurrentPage" instead.

And put that code in ~/.fvwm-crystal/userconfig, it's a safer place. :)

Cheers,
harnir

-- 
+ -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- +
| Maciej Delmanowski  /  http://linux.net.pl/~harnir/  /  GnuPG: 48B03AFE |
+ -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- +

_______________________________________________
fvwm-crystal-users mailing list
[EMAIL PROTECTED]
https://mail.gna.org/listinfo/fvwm-crystal-users

Reply via email to