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.
2 Answers
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.
-
1
-
1
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:
(if
(matches (application_name) "MPlayer")
(center)
)
Hope this helps!
I use Lubuntu which has Openbox as the default window manager and Openbox can position windows quite easily.
-
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.– NurJun 22, 2013 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: help.ubuntu.com/community/Lubuntu/…– user25656Jun 22, 2013 at 7:06
-
That's not as simple as in Ubuntu I guess, but I'll give it a try, thanks!– NurJun 22, 2013 at 7:13
-
If I want to position all windows, would just
(center)
work, without the surroundingif
andmatches
clauses?– ignisJun 22, 2013 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).– user25656Jun 22, 2013 at 7:56