Questions tagged [window-geometry]

The size and position of a window

The geometry of a window describes its size and position.

Classical X11 applications can have their geometry customized via X resources, either specified with the -geom or -geometry command line option or in the X11 resources loaded by xrdb. The syntax of a geometry specification is WWWxHHH±XXX±YYY where

  • WWW and HHH are the window width and height;
  • XXX and YYY are the windows's horizontal and vertical position.

The sign + or - before each position number indicates the window's gravity. For the horizontal position, + means that the number is the position of the window's left edge from the left of the screen; if the window or the screen is resized, the offset from the left of the screen will remain constant. A - sign similarly means that the number is the position of the window's right edge from the right of the screen. For the vertical position, + counts from the top and - counts from the bottom.

For example, the geometry 1000x800+0-0 indicates a window 1000 pixels wide and 800 pixels tall located in the bottom left corner of the screen.

External resources

9 questions
58
votes
8 answers

How do I find the window dimensions and position accurately including decorations?

I've been trying to figure out the size of a window for use in a small script. My current technique is using wmctrl -lG to find out the dimensions. However, the problem is this: The x and y figures it gives are for the top left of the window…
Macha
  • 3,760
  • 7
  • 30
  • 35
9
votes
1 answer

Move position of an application window from the command line on OSX

An application — iA Writer — somehow got stuck off screen with only the corner showing. I can't grab it or use other means to move it from that position. All new windows open in that position, regardless of if I open/close the application. Is there…
wintour
  • 193
  • 1
  • 1
  • 4
4
votes
2 answers

Launching applications from a terminal with specific window size and location

I am running Linux Mint 13, with a KDE 4 desktop manager. I would like to launch applications from a terminal (konsole in my specific case) and setting the exact size of the window and the location of the window. As an example, if I launch Kate and…
Aeronaelius
  • 573
  • 4
  • 9
  • 18
4
votes
3 answers

Launch an application with window decorator hints, x/y coordinates, size, etc

Is there a way to launch an application with a given size, position, and window decorator hints from the command line? I'd like to lock a certain window in a certain place at a size and without a chrome.
Naftuli Kay
  • 38,686
  • 85
  • 220
  • 311
4
votes
0 answers

xinitrc: starting xterm with tmux causes all windows to share same geometry

I have xterm with tmux open upon startup of X11 with the following line in my xinitrc file: xterm -e tmux & However the -e tmux causes all windows to assume the geometry of the first -geometry attribute in the file, even if I separately define the…
user62055
  • 41
  • 2
3
votes
1 answer

Where does Linux vncserver (Xvnc) get the list of geometry possiblities

I have looked through through parts of the code, and the places obvious to me, but I have not found the place that I can add legal geometries for a vncserver that I can set using xrandr. I have tried editing the vncserver script, but Xvnc takes only…
ElderDelp
  • 333
  • 2
  • 7
0
votes
1 answer

how to let xterm have geometry of 80x1 after disabling decorations?

I use this to toggle-decorations: https://gist.github.com/muktupavels/d03bb14ea6042b779df89b4c87df975d if I start xterm -geometry 80x1 it will have 1 height (in xterm TEXT lines, not in screen dots), but the moment I disable decorations it will have…
VeganEye
  • 21
  • 5
0
votes
0 answers

Open terminal in specific position when called from Nautilus

In Debian Stretch, I added Ctrl+Alt+T as a shortcut to gnome-terminal, including "175x25-0-0" as the geometry (a wide window, at the bottom-right of the screen). I want the same behavior when the terminal is opened from Nautilus' Open in Terminal…
Rodrigo
  • 1,732
  • 2
  • 16
  • 29
0
votes
1 answer

mplayer -vo caca with geometry

This -geometry 256x144+1095+600 work to show video in rigth bottom: mplayer -ontop -noborder -geometry 256x144+1095+600 -loop 0 -idle -fixed-vo -msglevel all=-1 2>/dev/null video.mp4 But this one (-vo caca) always stay in same position with same…
林果皞
  • 4,946
  • 2
  • 29
  • 45