Skip to content
/ snapforx Public
forked from okitavera/cornora

A simple approach at aerosnap for X11. Powered by xdotool and bash

License

GPL-3.0, MIT licenses found

Licenses found

GPL-3.0
LICENSE
MIT
OLD_LICENSE
Notifications You must be signed in to change notification settings

onli/snapforx

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SnapForX

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.

Dependencies

  • bash
  • xdotool
  • awk
  • wmctrl
  • xprop from xorg-xprop
  • xinput

Installation

Manual

  1. Make sure you already have the dependencies installed
  2. Clone this repo into your local storage:
$ git clone git@github.com:onli/snapforx.git
$ cd snapforx
  1. Install it:
$ sudo make install

Usage

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.

License

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.

About

A simple approach at aerosnap for X11. Powered by xdotool and bash

Topics

Resources

License

GPL-3.0, MIT licenses found

Licenses found

GPL-3.0
LICENSE
MIT
OLD_LICENSE

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 94.9%
  • Makefile 5.1%