Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

1 Answer 1

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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.