Sign up ×

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

1 Answer 1

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


