Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I would like to drag my windows to the left or right side of the desktop and have them automatically resized like it works with Gnome or Windows 7. And to maximize them when dragging them to the top. How is that possible in Xfce?

share|improve this question

3 Answers 3

up vote 15 down vote accepted

12.10 and above

Tiling snap is built into the XFCE window manager, just drag your windows to the edges of the screen for the snap to occur.

11.10 & 12.04

If you want the "tiling-snap" of compiz you will need to get your coding-hands dirty because this was made available as a code-patch for these two ubuntu releases.

According to this article - there is a patch available to enable windows tiling (aka windows snap) for the xfwm4 compositing manager.

There is a great you-tube video showing this in action.

enter image description here

I have applied this patch and uploaded this to my PPA.

to install

sudo add-apt-repository ppa:fossfreedom/xfwm4
sudo apt-get update
sudo apt-get install xfwm4

logout and login


If don't want to install the modified xfce window manager, you will need to use compiz as your compositing manager to enable tiling:

sudo apt-get install compiz compizconfig-settings-manager

Then add compiz --replace ccp & to your autostart programs list.

share|improve this answer
    
Worked well thank you. Is it possible to configure it the way, that when I move the window to the upper border, it maximizes instead of going over half of the screen? –  wegsehen Feb 27 '12 at 13:11
1  
I applied the archlinux patch directly to the ubuntu xwfm4 source. So I guess, if the capability you want wasnt already in that patch, then the request will need to go to the archlinux developers themselves. The capabilities enabled in the patch is as shown in the video - dragging to the top tiles the window over the top half of the screen. –  fossfreedom Feb 27 '12 at 13:13
    
@ph1b - just to make clear - if you see some really good changes in the future to the arch-linux patch, ping me the details and I'll try my best to revise my PPA. –  fossfreedom Feb 27 '12 at 13:28
    
I have tried to build xfwm4-tiling as alez has suggested, but failed. But there was a comment on this 'half of an adder' blog (alez's link) and this comment suggested to try X Tile. I would like to say that from my humble opinion it is far better than xfwm4-tiling. Why? Because you do not need to manually drag windows in order to tile them. With X Tile you get a small menu in the notification area, which has a lot of predefined tiling schemes and it works really nice. I recommend to give it a try. –  skanatek Apr 7 '12 at 10:04
    
@MartinLee - actually my PPA contains the same patch as alez pointed to - basically his is the same answer as mine. Why dont you create a question on how to use X Tile - if you already know the answer - you can answer it yourself! –  fossfreedom Apr 7 '12 at 12:22

To get window tiling to work in 12.10 you have to disable wrap_windows.

Run the following in the terminal to enable tiling:

xfconf-query -c xfwm4 -p /general/wrap_windows -s false

share|improve this answer
    
In 12.10 it works as default? –  wegsehen Feb 23 '13 at 10:44
1  
Nope it's not default. I had to enable it. –  josten Mar 16 '13 at 1:35

For an easier instalation of xfwm-tiling you can use this tutorial: Building xfwm4tiling. Maybe you will have to change a couple of version numbers but it worked wonderfully for me. If not, you will allways have the compiz route. If you have a 32bit system i still have the .deb on my comp but i strongly suggest you to build it yourself.

share|improve this answer

Your Answer

 
discard

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.