https://github.com/ncvescera/pythoncenteringwindows
A python "tiling" script for non tiling WMs for X11
https://github.com/ncvescera/pythoncenteringwindows
python3 tiling tiling-scripts xlib xorg
Last synced: 2 months ago
JSON representation
A python "tiling" script for non tiling WMs for X11
- Host: GitHub
- URL: https://github.com/ncvescera/pythoncenteringwindows
- Owner: ncvescera
- License: apache-2.0
- Created: 2021-11-30T16:59:06.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-12-20T12:13:11.000Z (over 3 years ago)
- Last Synced: 2025-02-04T19:49:56.203Z (4 months ago)
- Topics: python3, tiling, tiling-scripts, xlib, xorg
- Language: Python
- Homepage:
- Size: 30.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PythonCenteringWindows
A python script able to center windows based on Xorg Server## Install
Install required modules with:
```bash
pip install -r requirements.txt
```## Usage
You can run this script with:
```bash
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 !
## Xfce4 configuration
You can set a keyboard shortcut for this script like this:
1. Open Settings Manager
2. Select Keyboard
3. Under Application Shortcut use the add button to add a new shortcut
4. Add `python path/of/dir` (or `python path/to/dir --noresize`)
5. Choose a shortcut: SUPER + K
6. DONE