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.
Asked
Active
Viewed 1,436 times
2
-
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](http://unix.stackexchange.com/questions/43106/how-to-set-window-size-and-location-of-an-application-on-screen-via-command-line)); 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 Answers
5
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"))
Gilles 'SO- stop being evil'
- 807,993
- 194
- 1,674
- 2,175