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

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.

share|improve this question

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

share|improve this answer
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 '12 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.

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.