On Thu, Oct 24, 2002 at 03:17:49AM +0530, Kingsly John wrote: > Hi! > > How does one use the Conditional Commands to select a particular window ? > > The only thing that I've been able to get working is WindowId, by explicitly > specifying the window id in this fashion... > > Key F10 A M WindowID 0x280000e Iconify toggle > > But I just can't figure out how to get it going using window titles with any > of the other commands > > Key F10 A M Any (CurrentDesk, Mutt) Iconify toggle > > Key F10 A M Any (CurrentDesk, "Mutt") Iconify toggle > > etc have no effect whatsoever. > > I guess I'm missing something very basic out here.(I'm using the CVS version > ... couldn't wait till 2.5.4 was released before I could use the tinting > effects! :o)
Specifically, the "Any" command is broken and works like "None". In any case, it wouldn't do what you want here. The action of the "Any" command is executed if a window exists that matches the conditions. But it is executed outside of any window context, so "Iconify" would ask you to select a window. What you want is Key F10 A M Next (CurrentDesk, mutt) Iconify toggle or Key F10 A M All (CurrentDesk, mutt) Iconify toggle > Also is there any way to get windowID of a running window using the window > title ? Yes. The "$w" variable is expanded to the WindowId of the current context window. For example, Next (mutt) echo $w prints the window id of the next window with the title/class/resource "mutt". Bye Dominik ^_^ ^_^ -- Dominik Vogt, [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] -- 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 [EMAIL PROTECTED] To report problems, send mail to [EMAIL PROTECTED]
