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.