1

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)

0

1 Answer 1

1
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.

3
  • but, if when launch X11 open a xterm, with you command, now X11 launch two xterms?
    – juanpablo
    Mar 14, 2010 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, 2010 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, 2010 at 20:03

You must log in to answer this question.

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