On 27 Dec 2002 00:19:40 +0100, Thomas Glanzmann wrote:
>
> I have currently the following HotKey (Ctrl + Alt + S) to get the window
> with the current focus into Layer 4 (the fvwm default, I think).
>
> Key S W CM RaiseOnTop
>
> DestroyFunc RaiseOnTop
> AddToFunc RaiseOnTop
> + I Layer 0 4
> + I Raise
>
> I am looking for a helper function that moves the window with the
> current focus into layer 4 and if it is already in layer 4 it should
> move the window to layer 10.
There is a Layer condition to do what you want:
ThisWindow (Layer 4) Layer 10
Just keep in mind that if you want if-else construct you should use either
new 2.5.x Cond command or first conditionally construct a function and
only then execute it, like:
# cyclicly change a window layer 4 -> 10 -> 5 -> 9 -> 4
DestroyFunc ActuallyDoLayer
AddToFunc ActuallyDoLayer
ThisWindow (Layer 4) + Layer 10
ThisWindow (Layer 5) + Layer 9
ThisWindow (Layer 9) + Layer 4
ThisWindow (Layer 10) + Layer 5
ActuallyDoLayer
P.S. Layer command does not work in 2.5.5 and in cvs for now.
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 26 2002 - 18:58:11 GMT