I need to configure a dual-head machine using Debian 6 (and, hence, Gnome 2.30.2 and xrandr 1.3.3) so that it opens applications reliably on a certain screen.

While it is trivial to move normal windows from one monitor to the other by just dragging their title bars, we need to run Stellarium, which opens an undecorated fullscreen window that doesn't even respond to ALT-dragging it. It also does not seem to use the standard X command line switches -geometry, -display and so on.

Since this is a machine that will be shared by many users, I am especially interested in simple, intuitive and documentable solutions.

2 Answers 2


Devil's Pie probably does the job, it

can be configured to detect windows as they are created, and match the window to a set of rules. If the window matches the rules, it can perform a series of actions on that window.

The last news entry there is 5 years old, but it's probably ok (based on EWMH, Extended Window Manager Hints).

(Regarding automated window things using X11, there is also wmctrl, but I doubt it is of any use here.)

  • Aha! I have indeed used wmctrl for a couple of years in a shell script that I invoke from Alt-F2 after my Gnome session is all started. Instead of looking for a way to trigger that automatically when the session is fully started, I can try Devil's Pie.
    – minopret
    Mar 4, 2012 at 23:15

You can also launch Stellarium in window mode with a command-line option:

stellarium --full-screen no

See Stellarium's man page for details.

You can also set the full-screen flag in Stellarium's configuration file, as well as the starting size of the window.

You must log in to answer this question.

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