A python script able to center windows based on Xorg Server
Install required modules with:
pip install -r requirements.txt
You can run this script with:
python main.py [args]
Without no arguments this script center and resize the window.
With --noresize
argument this script centere the window and keeps his size.
WARNING: This script is tested only with XFCE4 and it works for now !
You can set a keyboard shortcut for this script like this:
- Open Settings Manager
- Select Keyboard
- Under Application Shortcut use the add button to add a new shortcut
- Add
python path/of/dir
(orpython path/to/dir --noresize
) - Choose a shortcut: SUPER + K
- DONE