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)

link|improve this question

63% accept rate
feedback

1 Answer

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.

link|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
feedback

Your Answer

 
or
required, but never shown

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