Discussion:
FVWM: How to start a bunch of xtems from a script on a specific page?
Michelle Konzack
2011-12-18 15:14:46 UTC
Permalink
Hello *,

I have a desktop of

+-----+-----+-----+-----+
| 1 | 2 | 3 | 4 |
+-----+-----+-----+-----+
| 5 | 6 | 7 | 8 |
+-----+-----+-----+-----+

and use a config of

DestroyFunc StartFunction
AddToFunc StartFunction
+ I Exec rplay $[HOME]/sounds/start0.wav >/dev/null 2>&1
PipeRead `for X in $[FVWM_USERDIR]/start/* ; do echo -n "+ I " ; cat $X ; done`

to autostart a bunch of FvwmMdules or Apps.

Now I have a script

----8-------------------------------------------------------------------
#!/bin/bash

xterm -geometry 16x59+0+138 +sb -u8 -font 6x10 \
-n td_show_messages \
-title td_show_messages \
-e td_show_messages &
disown

xterm -geometry 80x45+108+138 +sb -u8 -font 7x13 \
-n "Technic Mailinglists" \
-title "Technic Mailinglists" \
-e bash -l -c "mutt -F ${HOME}/.mutt/muttrc_technic -f =" &
disown

xterm -geometry 80x45+680+138 +sb -u8 -font 7x13 \
-n tddebbtsmanager \
-title tddebbtsmanager \
-e bash -l -c "mutt -F ${HOME}/.tddebbtsmanager/mutt/muttrc -f =" &
disown

xterm -geometry 16x68+1252+48 +sb -u8 -font 6x10 \
-n td_show_bts \
-title td_show_bts \
-e td_show_bts &
disown

xterm -geometry 80x45+383+76 +sb -u8 -font 7x13 -iconic \
-n tdautobuilder \
-title tdautobuilder \
-e bash -l -c "mutt -F ${HOME}/.tdautobuilder/mutt/muttrc -f =" &
disown
----8-------------------------------------------------------------------

where all XTerms should open on page 5.

How can I do this?

I was thinking, it works with "MoveToPage" or "MoveToDesk" but itdoes
not work for me.

Thanks, Greetings and nice Day/Evening
Michelle Konzack
--
##################### Debian GNU/Linux Consultant ######################
Development of Intranet and Embedded Systems with Debian GNU/Linux
Internet Service Provider, Cloud Computing
<http://www.itsystems.tamay-dogan.net/>

***@tdnet Jabber ***@jabber.ccc.de
Owner Michelle Konzack

Gewerbe Strasse 3 Tel office: +49-176-86004575
77694 Kehl Tel mobil: +49-177-9351947
Germany Tel mobil: +33-6-61925193 (France)

USt-ID: DE 278 049 239

Linux-User #280138 with the Linux Counter, http://counter.li.org/
Thomas Adam
2011-12-18 15:26:20 UTC
Permalink
Post by Michelle Konzack
Hello *,
I have a desktop of
+-----+-----+-----+-----+
| 1 | 2 | 3 | 4 |
+-----+-----+-----+-----+
| 5 | 6 | 7 | 8 |
+-----+-----+-----+-----+
and use a config of
DestroyFunc StartFunction
AddToFunc StartFunction
+ I Exec rplay $[HOME]/sounds/start0.wav >/dev/null 2>&1
PipeRead `for X in $[FVWM_USERDIR]/start/* ; do echo -n "+ I " ; cat $X ; done`
to autostart a bunch of FvwmMdules or Apps.
Now I have a script
Well, you could do this:

Style XTerm-Special-* StartsOnDesk ..., SkipMapping

Where that would look something like:

for i in $(seq 10); do xterm -T "XTerm-Special-$i" & done

Or you could instead use XTerm's -xrm option to position specific instances
of XTerms regardless of any window attribute.

xterm -xrm "*Page:2 1 1"

This would place the xterm on desk two, one page right and one down from
desk 2.
Post by Michelle Konzack
I was thinking, it works with "MoveToPage" or "MoveToDesk" but itdoes
not work for me.
Because the way you have it now, FVWM has no choice in configuring the
window in question. I've spoken a lot in the past about why using
Exec/Wait/GotoPage, etc., is no longer necessary:

http://www.mail-archive.com/***@lists.math.uh.edu/msg16494.html

-- Thomas Adam
--
"Deep in my heart I wish I was wrong. But deep in my heart I know I am
not." -- Morrissey ("Girl Least Likely To" -- off of Viva Hate.)
Loading...