[ACCEPTED]-Get the actual geometry of a gnome-terminal-gnome-terminal
Accepted answer
I can propose you a workaround for this 10 problem which is working for me. First of 9 all you obtain the geometry of the window 8 with the following command:
xwininfo -id $(xprop -root | awk '/_NET_ACTIVE_WINDOW\(WINDOW\)/{print $NF}')
You will get 7 something like this:
Absolute upper-left X: 783
Absolute upper-left Y: 344
Relative upper-left X: 0
Relative upper-left Y: 0
Width: 722
Height: 434
Depth: 32
Visual: 0x76
Visual Class: TrueColor
Border width: 0
Class: InputOutput
Colormap: 0x4400005 (not installed)
Bit Gravity State: NorthWestGravity
Window Gravity State: NorthWestGravity
Backing Store State: NotUseful
Save Under State: no
Map State: IsViewable
Override Redirect State: no
Corners: +783+344 -175+344 -175-272 +783-272
-geometry 80x24+775+315
Neither the information 6 in the -geometry 80x24+775+315
section nor the information in Absolute upper-left X: 783
and 5 Absolute upper-left Y: 344
allows you to launch a gnome-terminal in 4 the same position than the current on. You 3 have to mix both data to get the appropriate 2 information.
gnome-terminal --geometry=80x24+783+315
Note: I have check this under 1 Ubuntu 11.10 | Unity
Source:
stackoverflow.com
More Related questions
Cookie Warning
We use cookies to improve the performance of the site. By staying on our site, you agree to the terms of use of cookies.