Placing application windows on the screen in a script?

Using applications, configuring, problems
Post Reply
Message
Author
Taavi
Posts: 146
Joined: Fri 10 Mar 2006, 19:23
Location: Suomi, Finland

Placing application windows on the screen in a script?

#1 Post by Taavi »

Hi,

is it possible to place application windows on the screen as opening them from a script?

If I for example want to open leafpad and xdvi windows side by side is there any way to do it? So that I don't need to drag them after they are opened.

Taavi
disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#2 Post by disciple »

There is a standard --geometry option that you can use when you start them.
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER
Taavi
Posts: 146
Joined: Fri 10 Mar 2006, 19:23
Location: Suomi, Finland

#3 Post by Taavi »

Thanks,

I had -geometry option in my script for xdvi's window size but I didn't notice I can get the position too in there. So now I got it like this:

Code: Select all

xdvi -expertmode 0 -watchfile 1 -cr orange -xoffset -0.1 -yoffset -0.1 -geometry 400x550-5+10  "$FILE".dvi
Geometry doesn't work for leafpad but this is enough, now those windows open side by side.
Post Reply