Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I use Mac OSX. When launch X11 this open a xterm.
how I can automatically locate xterm in a specific position every time I open X11? (centered on the screen)

share|improve this question
up vote 1 down vote accepted
defaults write org.x.X11 app_to_run "/usr/X11/bin/xterm -geometry +100+100"

adjusting the +100+100 as needed to center, and using something like 100x30+100+100 to adjust size as well as position.

share|improve this answer
    
but, if when launch X11 open a xterm, with you command, now X11 launch two xterms? – juanpablo Mar 14 '10 at 19:46
    
I try modify the last line of /usr/X11/lib/X11/xinit/xinitrc file of exec xterm -geometry 140x22+0+0 -name login to exec xterm -geometry 140x22+210+0 -name login but not works. – juanpablo Mar 14 '10 at 19:49
    
you're right, the solution is: defaults write org.x.X11 app_to_run "/usr/X11/bin/xterm -geometry 140x22+210+0" – juanpablo Mar 14 '10 at 20:03

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .