Simple aerosnap-like window controls for X11 window managers.
snapforx_demo2.mp4
This does not have the preview animations and will never be as comfortable as snap controls that are integrated natively into a window manager. But it's still a way to provide snappy window movement controls to X11 window managers that do not have that capability by themselves.
bash
xdotool
awk
wmctrl
xprop
fromxorg-xprop
xinput
- Make sure you already have the dependencies installed
- Clone this repo into your local storage:
$ git clone git@github.com:onli/snapforx.git
$ cd snapforx
- Install it:
$ sudo make install
Start it as a terminal program
args | conditions |
---|---|
-iof, --ignore-on-fullscreen | disable command when active window is fullscreen |
--stop | force stop snapforx if it's running |
-v | verbose mode |
-l | enable left edge detection |
-r | enable right edge detection |
-t | enable top edge detection |
-h | show the help |
Example
$ snapforx -l -r -t -iof
Grab a window at its decoration. Move it to the left edge of the screeen to have it maximized vertically on the left half of the screen. The right edge does the same for the right half. Move it to the top to have if fully maximized. Drag a maximized window down to unmaximize it.
The code, as it is based on cornora, was licensed under the MIT license. As of march 2022 this work is licensed under GNU GPLv3.