Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. 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

Is there a general program, that start my GUI program, and able to specify the size and location of this program ? Not just X programs, but also other GUI libs.

share|improve this question
You could also start the application, and then use wmctrl to set window size (see also How to set window size and location of an application on screen via command line? - Unix & Linux Stack Exchange); however, you need a window ID to wmctrl, and I'm not sure what is the best way to get it non-interactively. – sdaau Feb 19 '14 at 14:38
up vote 4 down vote accepted

Devil's Pie does have such an option. See e.g. the Ubuntu wiki and this howto. In X11 parlance, a window's size and location make up its geometry. Write something like

(if (is (application_name) "Foo")
    (geometry "400x200-0+20"))
share|improve this answer

Your Answer


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.