Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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

How to set newly opened window at the center of the screen in Xubuntu? Is it possible? In Ubuntu it can be easily done by Compiz Config Setting Manager.

share|improve this question
up vote 4 down vote accepted

There's no need to install anything or mess with scripts. Open the settings manager, click on Window Manager Tweaks, select the Placement tab, and slide the bar under "Minimum size of windows to trigger smart placement:" all the way to the right. Every window you open should now be centered.

share|improve this answer
Works great, thanks! – Nur Jun 24 '13 at 10:08
exactly what I was looking for, thanks! – lefoy Nov 11 '13 at 23:45

You can install devilspie with sudo apt-get install.

Then look at this thread: HOWTO: Center / Re-position Windows .

There is an example for centering mplayer:

    (matches (application_name) "MPlayer")

Hope this helps!

I use Lubuntu which has Openbox as the default window manager and Openbox can position windows quite easily.

share|improve this answer
So I have to create that script for each application? That's inconvenient. How do you position windows at center on Lubuntu? I might consider Lubuntu because I just want lightweight desktop and the choice is between Xubuntu or Lubuntu. – Nur Jun 22 '13 at 6:53
There are two ways. One is after the window is launched, the other is before. I've written about the first way here:… – user25656 Jun 22 '13 at 7:06
That's not as simple as in Ubuntu I guess, but I'll give it a try, thanks! – Nur Jun 22 '13 at 7:13
If I want to position all windows, would just (center) work, without the surrounding if and matches clauses? – ignis Jun 22 '13 at 7:38
@ignis, I have no experience with devilspie :( but you can open all future windows of all applications centered with just one command in Lubuntu (with the Openbox window manager). – user25656 Jun 22 '13 at 7:56

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.