Re: FVWM: How to start up a program at where I want?

From: Alexander Kolosov <kas_at_rtpc.karelia.ru>
Date: Sat, 04 Sep 2004 00:00:03 +0400

Hi, Shuxiang!

> Each time I restart FVWM I want an xterm started at the center of page
> 0, a firefox
> at top left of page 1, thunderbird at page 2....
> I am wondering if there is a way to do it in the StartFunction?
Something like this may help you:

+ I GotoPage 0 0
+ I Exec exec xterm
+ I Wait xterm
+ I Current PipeRead "echo Move `expr $[vp.width] / 2 - $[w.width] / 2`p `expr $[vp.height] / 2 - $[w.height] / 2`p"

+ I GotoPage 1 0
+ I Exec exec firefox
+ I Wait "Mozilla Firefox"
+ I Current Move +0 +0

+ I GotoPage 2 0
+ I Exec exec thunderbird
+ I Wait "Mozilla Thunderbird"
+ I Current Move +0 +0

It can be placed in your StartFunction or (may be it's more useful) in
InitFuntction.

-- 
Alexander Kolosov
--
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 Fri Sep 03 2004 - 15:00:50 BST

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