Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Main Support Categories > General Help
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

General Help
All your general support questions for Ubuntu, Kubuntu, Edubuntu, Xubuntu and Lubuntu.

 
Thread Tools Display Modes
Old October 18th, 2009   #1
Hund
Ubuntu Member
 
Hund's Avatar
 
Join Date: Mar 2007
Location: Sweden
Beans: 131
Ubuntu 10.04 Lucid Lynx
Aero Snap function?

I would like to have a function like "Aero Snap" found in Windows.

http://www.youtube.com/watch?v=TbsnbjkrWus

Would be nice if Compipz had a plugin for this. But I cant find any info about it.
__________________
Please don't hurt the web, use open standards.
Hund is offline   Reply With Quote
Old October 19th, 2009   #2
P4man
Linux noob forever
 
P4man's Avatar
 
Join Date: Oct 2007
My beans are hidden!
Re: Aero Snap function?

check out the grid plugin in compiz.
If you dont like having to use shortcuts for it, I guess its possible somehow to bind it to an edge binding in the commands plugin, but I havent figured that out yet.
P4man is offline   Reply With Quote
Old October 19th, 2009   #3
Hund
Ubuntu Member
 
Hund's Avatar
 
Join Date: Mar 2007
Location: Sweden
Beans: 131
Ubuntu 10.04 Lucid Lynx
Re: Aero Snap function?

Thx. Thats almous what I wanted.
__________________
Please don't hurt the web, use open standards.
Hund is offline   Reply With Quote
Old October 28th, 2009   #4
gotsanity
Just Give Me the Beans!
 
Join Date: Jan 2008
Beans: 60
Re: Aero Snap function?

I also would like to see the snap function built into compiz. Grid almost does what we are looking for but I would like to see it mouse based. Anyone know if it is even possible without some severe code hacking?

Also, on a side note the aero shake feature (http://www.youtube.com/watch?v=_ryBmNrwqDo) is pretty sweet as well. I am sure that with enough hacking it could be done on linux as well.
gotsanity is offline   Reply With Quote
Old October 28th, 2009   #5
dbyjazz
A Carafe of Ubuntu
 
Join Date: Feb 2009
Location: Santa Clara, Utah
Beans: 142
Ubuntu 9.10 Karmic Koala
Re: Aero Snap function?

This is great. I've used in on my Windows machine and I love that feature.
dbyjazz is offline   Reply With Quote
Old October 29th, 2009   #6
gotsanity
Just Give Me the Beans!
 
Join Date: Jan 2008
Beans: 60
Re: Aero Snap function?

I worked out the snapping windows via mouse bit. I will post again in a moment with the tutorial.
gotsanity is offline   Reply With Quote
Old October 29th, 2009   #7
Hund
Ubuntu Member
 
Hund's Avatar
 
Join Date: Mar 2007
Location: Sweden
Beans: 131
Ubuntu 10.04 Lucid Lynx
Re: Aero Snap function?

Quote:
Originally Posted by gotsanity View Post
I worked out the snapping windows via mouse bit. I will post again in a moment with the tutorial.
Cool.
__________________
Please don't hurt the web, use open standards.
Hund is offline   Reply With Quote
Old October 29th, 2009   #8
P4man
Linux noob forever
 
P4man's Avatar
 
Join Date: Oct 2007
My beans are hidden!
Re: Aero Snap function?

Quote:
Originally Posted by dbyjazz View Post
This is great. I've used in on my Windows machine and I love that feature.
Its a nice feature, though I prefer grid and Maximumize in compiz.
Especially with dual monitor aero snap is useless, as it only snaps to the left half on the left monitor and the right half on the right monitor
P4man is offline   Reply With Quote
Old October 29th, 2009   #9
gotsanity
Just Give Me the Beans!
 
Join Date: Jan 2008
Beans: 60
Lightbulb Howto: Aero Snap for Compiz

Full Solution Here!

Ok boys and girls, get ready to write this down.

First you need to make sure you have the following installed:

Code:
sudo apt-get install compizconfig-settings-manager wmctrl
While that is running find out how big the dimensions of your screen is (Mine has a width of 1600 pixels by a height of 1200 pixels). Write these down you will need them later.

Next, open compizconfig settings manager by clicking on System > Preferences > Compizconfig Settings Manager

At the very top is a button labeled Commands. Select it.

Wmctrl will do the window sizing via the following command:

Code:
wmctrl -r :ACTIVE: -e <Gravity>,<X>,<Y>,<Width>,<Height>
Gravity: Leave this 0.
X,Y: This is the top left position of the window (AKA: Where to start drawing the window.)
Width,Height: How large the window should be drawn.


Input the following (Adjusting the totals for the dimensions of your screen):

Command Line 0
Code:
wmctrl -r :ACTIVE: -e 0,0,0,800,1155
Command Line 1
Code:
wmctrl -r :ACTIVE: -e 0,800,0,800,1155
Command Line 2
Code:
wmctrl -r :ACTIVE: -e 0,0,0,1600,1155
And the final steps. Switch to the Edge Bindings tab and select the following edges:

Run Command 0 - Left
Run Command 1 - Right
Run Command 2 - Top

Last step: Click Back and then click on General Options. Set your Edge Trigger Delay to something you find comfortable with. Mine is set at 400.

Only disadvantages I have come across is that if you let the cursor hover too long over a hot point you will accidentally start resizing whatever window you have active. Also, there is a quirk with some windows that will not allow them to resize to the correct size (I am assuming due to the size of the widgets within the window).

Last edited by gotsanity; April 29th, 2010 at 01:39 AM..
gotsanity is offline   Reply With Quote
Old October 29th, 2009   #10
gotsanity
Just Give Me the Beans!
 
Join Date: Jan 2008
Beans: 60
Re: Aero Snap function?

Quote:
Originally Posted by P4man View Post
Its a nice feature, though I prefer grid and Maximumize in compiz.
Especially with dual monitor aero snap is useless, as it only snaps to the left half on the left monitor and the right half on the right monitor
Best part about having a linux app perform snapping: you can adjust the dimensions easily

For my next trick... Im gonna attempt to tackle Aero Shake...
gotsanity is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:38 AM.


vBulletin ©2000 - 2012, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry