Re: FVWM: Intricacies of the Next() function / Conditionals

From: Nicholas Paul Johnson <nickjohnson_at_virginia.edu>
Date: Sun, 2 May 2004 18:18:40 -0400 (EDT)

This works great! Thank you.

I'll quote the portion of my .fvwm2rc for the archives here:

#---------------- snip .fvwm2rc
# Abstract: to automatically focus a new window when one window closes
# tries to choose a window in the same desk, but will default to
# a window on any desk if unavailable
#
# Requires fvwm 2.5.x+


DestroyFunc FocusAndRaise
AddToFunc FocusAndRaise
+ "I" Focus
+ "I" Raise


# For my alt-tab binding
# switch to any other non-sticky window
DestroyFunc Cycle
AddToFunc Cycle
+ "I" Next (!Sticky) Function FocusAndRaise
Key Tab A M Cycle


# cycle windows whenever a window is closed.
# switch to another non-sticky window
# try first a window on the same desk,
# default to any non-sticky window
DestroyFunc CycleLocally
AddToFunc CycleLocally
+ "I" Next (CurrentDesk, !Sticky) Function FocusAndRaise
+ "I" TestRC (0) Next (!Sticky) Function FocusAndRaise
*FvwmEvent: destroy_window 'Function CycleLocally'

#----------------


Thanks a lot,
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  Nicholas Paul Johnson
  o nickjohnson \at\ virginia \dot\ edu
  o 3ebf10a7 subkeys.pgp.net
  o http://manjac.ath.cx/nick
  o "When all you've got is a hammer,
    everything looks like a nail.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=



--
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 Sun May 02 2004 - 18:46:03 BST

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:56 BST