A slick, animated window management tool for Linux (X11)
Project description
🥋 WinJitsu
WinJitsu is a slick, animated window management tool for Linux (X11). It allows you to effortlessly snap your active windows to various positions on your screen with smooth animations, making your workflow feel more organic and responsive. ✨
🚀 Features
- Smooth Animations: Windows glide to their new positions instead of just jumping there. 🌬️
- Grid Snapping: Position windows easily to the North, South, East, West, corners, or center. 🧭
- Multi-Monitor Support: Move windows between displays with ease. 🖥️ ➡️ 🖥️
- Fullscreen Toggling: Smart fullscreen with configurable padding and restore capabilities. ↔️
- Background Daemon: Run as a daemon for instant, delayed responses to hotkeys. ⚡
- Config File: Persist your preferences in
~/.config/winjitsu/config.ini. ⚙️ - CLI Overrides: Override any config value on the fly with flags — no file editing needed. 🎛️
🛠️ Requirements
Make sure you have the following installed on your system:
- Python 3.10+ 🐍
xdotool(for window manipulation)python-xlib/python3-xlib(for screen detection via RandR)
Installing Dependencies
🐧 Arch‑based distributions (Arch Linux, EndeavourOS, Manjaro, etc.)
sudo pacman -S python xdotool python-xlib
🐧 Debian‑based distributions (Debian, Ubuntu, Linux Mint, etc.)
sudo apt install python3 xdotool python3-xlib
🐧 Fedora‑based distributions (Fedora, CentOS, etc.)
sudo dnf install python3 xdotool python3-xlib
📦 Installation
🏹 On Arch‑based systems
WinJitsu is available in the AUR. You can install it using your favorite AUR helper (e.g., yay):
yay -S winjitsu
Building and Installing Wheel (Recommended)
To install WinJitsu as a package, you can build a wheel and install it.
This uses the standard pyproject.toml configuration to build the package.
This allows you to run winjitsu from anywhere.
-
Install build tools:
pip install build
-
Build the package:
python3 -m build
-
Install the wheel:
pip install dist/winjitsu-0.2.0-py3-none-any.whl --force-reinstall
-
Run WinJitsu:
winjitsu --help
Manual Installation (From Source)
Clone the repository and install using pip:
git clone https://github.com/Evilchuck666/winjitsu.git
cd winjitsu
pip install .
🎮 Usage
Run the command with an action argument to control the active window:
winjitsu [ACTION] [OPTIONS]
Available Actions
| Action | Description | Emoji |
|---|---|---|
N |
Move to North (Top Half) | ⬆️ |
S |
Move to South (Bottom Half) | ⬇️ |
E |
Move to East (Right Half) | ➡️ |
W |
Move to West (Left Half) | ⬅️ |
NE |
Move to North-East | ↗️ |
NW |
Move to North-West | ↖️ |
SE |
Move to South-East | ↘️ |
SW |
Move to South-West | ↙️ |
C |
Center the window | 🎯 |
F |
Maximize / Fullscreen | 🖥️ |
U |
Unscreen (Restore original size/pos) | 🔙 |
TF |
Toggle Fullscreen | 🔄 |
TD |
Toggle Display (Move to other monitor) | 📺 |
CC |
Clear Cache | 🧹 |
⚙️ Configuration
WinJitsu can be configured via a file or directly from the command line. CLI flags always take priority over the config file. 🏆
Config File
The config file lives at ~/.config/winjitsu/config.ini (respects $XDG_CONFIG_HOME).
winjitsu --write-config # 📝 Save current settings to the config file
winjitsu --see-config # 👀 Show the active config file path and values
winjitsu --read-config PATH # 📂 Use a different config file for this run
Available Options
| Flag | Config key | Default | Description |
|---|---|---|---|
--steps N |
[animation] steps |
25 |
Animation steps — higher is smoother but slower 🎞️ |
--padding PX |
[display] padding |
0 |
Gap in pixels around the window when fullscreening 📐 |
--delay-ms MS |
[daemon] delay_ms |
250 |
Delay in ms before an action fires in daemon mode ⏱️ |
Examples
winjitsu N --steps 10 # Super snappy animation 💨
winjitsu F --padding 8 # Fullscreen with a cozy gap 🖼️
winjitsu --write-config --steps 15 --padding 4 # Save these as your defaults 💾
⚡ Daemon Mode
Running WinJitsu as a background daemon makes hotkey responses feel instant and prevents duplicate actions from key repeat. 🚀
winjitsu --daemon # Start the daemon in the background
winjitsu --reload-daemon # Restart it without clearing the window cache 🔄
When the daemon is running, any winjitsu [ACTION] command is sent to it over a Unix socket. The daemon applies a short delay (configurable with --delay-ms) so rapid bursts of the same key collapse into a single, clean action. ✨
💡 Tip: Start the daemon on login and bind your hotkeys to
winjitsu [ACTION]— you'll barely notice the tool is even there.
🎹 Binding Keys
For the best experience, bind these commands to keyboard shortcuts in your window manager configuration (e.g., i3, creating custom shortcuts in GNOME/KDE).
Example:
Super + Up->winjitsu NSuper + Right->winjitsu E
Happy tiling! 🎉
⚖️ License
This project is licensed under the GPLv3 License – see the LICENSE file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file winjitsu-0.2.0-py3-none-any.whl.
File metadata
- Download URL: winjitsu-0.2.0-py3-none-any.whl
- Upload date:
- Size: 38.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fc86f9e5480f04db9f69b4e9fdc1c7da272527629b0fc13b3ecf8c2cb6d54b90
|
|
| MD5 |
6617aaae19339b317111d92358073286
|
|
| BLAKE2b-256 |
920d89655467bb1d845517d470791c57006965c6d7fa8ff4adb06665b6aec2f4
|