Results 1 to 2 of 2
Alright, so I just started working at a new job. Its all linux. Basically I need to have a certain things up all the time like chat, a terminal window ...
- 09-09-2011 #1Just Joined!
- Join Date
- Sep 2011
- Posts
- 1
Launch applications at certain sizes and positions?
Alright, so I just started working at a new job. Its all linux. Basically I need to have a certain things up all the time like chat, a terminal window and others. Now I have a good layout...but I want to know if there is a good way to script the programs to open in a certain window size/position?
Writing a script to connect the VPN and open all the programs at launch but it would great to be able to place them too. Any ideas?
- 09-10-2011 #2Linux User
- Join Date
- Jan 2005
- Location
- Saint Paul, MN
- Posts
- 262
The basic X argument to a GUI application is of the form:
where the geometry_string is of the form:Code:-geometry geometry_string
Positive X are from the left edge while negative X are from the right edge. Positive Y are from the top edge while negative Y are from the bottom edge.Code:WxH+X+Y WxH+X-Y WxH-Y+Y WxH-X-Y WxH +x+y +X-Y -X+Y -X-Y
If none of these options work, it is a failure of the application which does not process at least one of the standard option forms.
Of course GNOME and KDE modified this standard X option to be (and use the double dash):
Gnome--geometry=geometry_stringKDE--geometry geometry_string
Also older text based GUI applications such as "xterm" the use the width and height as character columns and character rows rather than pixles. Newer terminals are not written as nice and their width and height are in pixels rather then converting character information into pixels.


Reply With Quote