Re: FVWM: Conditional Commands

From: Dominik Vogt <dominik.vogt_at_gmx.de>
Date: Thu, 24 Oct 2002 00:50:57 +0200

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, dominik.vogt_at_gmx.de
Reply-To: dominik.vogt_at_gmx.de
--
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 Wed Oct 23 2002 - 19:38:04 BST

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