Re: FVWM: Key binding to raise specific window?

From: Dominik Vogt <dominik.vogt_at_gmx.de>
Date: Mon, 8 Jul 2002 00:15:28 +0200

On Sun, Jul 07, 2002 at 11:40:05AM -0600, Jed S. Baer wrote:
> Greetings.
>
> First off, taking a queue from Maddog Hall, many thanks to the Fvwm
> developers. I try other WMs from time to time, and keep coming back.
>
> I'm using v 2.2.5

You should consider upgrading to 2.4.8, the latest stable release.
It has a lot of fancy new stuff - and maybe equally important -
the 2.4.x series are the only supported stable releases. Now to
your question:

> What I would like to be able to do is bind a key to a function which would
> raise my fvwmbuttons.

Bind this command to a key:

  Next (CirculateHit, FvwmButtons) Raise

> For the sake of having as much usable screen area as
> possible, I have it set so that it can be obscured by other windows. (no
> autoraise going on, and sometimes I completely obscure it anyway)
>
> Style "FvwmButtons" NoTitle, NoHandles, StaysPut, Sticky, \
> CirculateSkip, BorderWidth 0, \
> WindowListHit
>
> So, I can warp to it from the window list, or edge-flip and get to it that
> way, but I'm hoping for a faster method. But looking through the man page,
> the closest I can come to this is `WindowId 0x34567890 Raise' (or warpto),
> except that I don't have the window ID. Is there a function I've missed
> which will return the window ID so that I can use it in a key binding? Or
> maybe a SendToModule command to tell it to raise itself?
>
> I'm starting it up this way:
>
> AddToFunc InitFunction "I" Module FvwmButtons
> AddToFunc RestartFunction "I" Module FvwmButtons
>
> I realize that a GetWindowID("string") would suffer from the issue of
> possibly matching multiple windows, but I could give FvwmButtons a unique
> title at startup, and find it that way, I think.

The WindowId command is mainly used with modules like FvwmEvent or
FvwmAuto. They have an option to append the window id to the
commands they send to fvwm. Also, you can reference the window id
with the '$w' variable in commands, for example:

  Mouse 1 5 n Echo $w

Prints the window id when title button 5 is pressed. It's usually
only needed in complicated setups.

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 Sun Jul 07 2002 - 18:46:27 BST

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