[solved] lxterminal start geometry
Posted: Wed May 25, 2011 11:34 am
Hi everybody ! this is my first MSG on the board. I will say it just once : IMO LXDE is the best thing that came to GNU/Linux since XF86.
I noticed something weird about lxterminal. What I want to do is to autostart it vertically maximized, half-screen width, left edge at 10% of the left of my screen.
$lxterminal --help
(...)
--geometry=GEOMETRY X geometry specification (see "X" man page), can be specified once per window to be opened.
(...)
The "X" man page (http://www.x.org/archive/X11R6.8.1/doc/X.7.html#sect6) says
most X programs accept a command line argument of the form -geometry WIDTHxHEIGHT+XOFF+YOFF
The WIDTH and HEIGHT parts of the geometry specification are usually measured in either pixels or characters, depending on the application. The XOFF and YOFF parts are measured in pixels and are used to specify the distance of the window from the left or right and top and bottom edges of the screen, respectively.
but when I try
$ lxterminal --geometry=15x15+0+0
I get a 50ish px x 100ish px window positioned somewhere around the middle of the right half of my screen. YMMV. What gives ?
I tried *a lot* of combos, but *none* produced what I want. If i specify a number greater than 100 the window becomes larger than my 1280x1024 screen...?!
EDIT ; Here is how I did it :
$lxterminal --geometry=75x57+1-0
This give me a lxterminal vertically maximized, half-screen width, left edge at 10% of the left of my screen.
If anybody has a better idea (ie more portable : What if I switch res ?) I'm mildly interested.
I noticed something weird about lxterminal. What I want to do is to autostart it vertically maximized, half-screen width, left edge at 10% of the left of my screen.
$lxterminal --help
(...)
--geometry=GEOMETRY X geometry specification (see "X" man page), can be specified once per window to be opened.
(...)
The "X" man page (http://www.x.org/archive/X11R6.8.1/doc/X.7.html#sect6) says
most X programs accept a command line argument of the form -geometry WIDTHxHEIGHT+XOFF+YOFF
The WIDTH and HEIGHT parts of the geometry specification are usually measured in either pixels or characters, depending on the application. The XOFF and YOFF parts are measured in pixels and are used to specify the distance of the window from the left or right and top and bottom edges of the screen, respectively.
but when I try
$ lxterminal --geometry=15x15+0+0
I get a 50ish px x 100ish px window positioned somewhere around the middle of the right half of my screen. YMMV. What gives ?
I tried *a lot* of combos, but *none* produced what I want. If i specify a number greater than 100 the window becomes larger than my 1280x1024 screen...?!
EDIT ; Here is how I did it :
$lxterminal --geometry=75x57+1-0
This give me a lxterminal vertically maximized, half-screen width, left edge at 10% of the left of my screen.
If anybody has a better idea (ie more portable : What if I switch res ?) I'm mildly interested.