Implementing AeroSnap in Ubuntu10.10Maverick

Source: Internet
Author: User
AeroSnap and Windows emission functions that are super easy to use in Win7. Cinch can be implemented in Mac, but what about Ubuntu? By default, Kubuntu has this function, but unfortunately the native Ubuntu is not powerful. I am used to the snap feature. I often drag it and it doesn't respond, so I am very depressed (Ubuntu: my fault ?). Although Ubuntu is not omnipotent, Compiz + wmctrl can be used to solve this problem .. First install ccsm and wmctrl (if you have already installed

Aero Snap, Windows emission function that is super easy to use in Win7. Cinch can be implemented in Mac, but what about Ubuntu? By default, Kubuntu has this function, but unfortunately the native Ubuntu is not powerful. I am used to the snap feature. I often drag it and it doesn't respond, so I am very depressed (Ubuntu: my fault ?).

Although Ubuntu is not omnipotent, Compiz + wmctrl can be used to solve this problem ..
First install ccsm and wmctrl (if ccsm is already installed, you only need wmctrl ):

Sudo apt-get install compizcpnfig-settings-manager wmctrl

Then run ccsm or find CompizConfig in System> Perferences to start.
Locate Command item

In the command bar, type:
Command line 0:
Wmctrl-r: ACTIVE:-B remove, maximized_vert, maximized_horz & WIDTH = 'xdpyinfo | grep 'dimensions: '| cut-f 2-d ': '| cut-f 1-d 'X' & HALF =$ ($ WIDTH/2) & wmctrl-r: ACTIVE:-B add, maximized_vert & wmctrl-r: ACTIVE:-e 0, 0, $ HALF,-1

Command line 1:
Wmctrl-r: ACTIVE:-B remove, maximized_vert, maximized_horz & WIDTH = 'xdpyinfo | grep 'dimensions: '| cut-f 2-d ': '| cut-f 1-d 'X' & HALF =$ ($ WIDTH/2) & wmctrl-r: ACTIVE:-B add, maximized_vert & wmctrl-r: ACTIVE:-e 0, $ HALF, 0, $ HALF,-1

Command line 2:
Wmctrl-r: ACTIVE:-B add, maximized_vert, maximized_horz

Command line 3:
Wmctrl-r: ACTIVE:-B remove, maximized_vert, maximized_horz

These four actions correspond to the left-and right-stop actions, the upper-end maximization action, and the restore-to-original action, respectively.
As shown in figure:


Go to Edge Bindings and set the trigger point (if you want to drag the Edge in a window, this is for your reference only)


This should have taken effect. Grab the window and drag it to the edge of the screen.
Close and exit, complete.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.