One can share screenspace neatly in left and right portions by dragging the window until the cursor touches the left or right edge of the screen, and the window will automatically 'snap' to that half of the screen. How do I achieve this same functionality to share the screenspace in 'top' and 'bottom' halves instead of left and right?
I cannot do so when dragging the window until the cursor touches the top or bottom of the screen. Dragging to the top causes the window to maximize. Dragging to the bottom merely drops the rest of that window into the lower 'desktop screenspace'.
(Please also correct my terminology if there are designated words I should be using.)
Best Answer
A few year ago I wanted to achieve the snap window function in Lubuntu 14.04. I think you need openbox for this to work.
Take a look at https://github.com/lawl/opensnap
Below is a summary of the installation procedure quoted from that page:
Installing
If you want to install
opensnap
from source first make sure you have git installed. (Or fetch a zip file: https://github.com/lawl/opensnap/archive/master.zip)Fetch via git:
Fetch via zip:
unzip master.zip
Make sure you have all prerequisites:
And finally build and install it:
And now start opensnap with
or
if you want it to daemonize.
If I remember well, there was a bug when trying to unsnap the snapped window. Take a look at https://github.com/lawl/opensnap/issues/4 there is a workaround described.
In my case Lubuntu 14.04 I had to modify
/home/user/.config/openbox/lubuntu-rx.xml
The code between the tags<mousebind button="Left" action="Drag">
and</mousebind>
has to be exchanged by:Make sure that you are inside the tags of
<context name="Titlebar">