Skip to main content

🥋 WinJitsu

Python License

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 to each window's home position. ↔️
  • Background Daemon: A small daemon answers hotkeys instantly and collapses key-repeat bursts into one action. ⚡
  • Config File: Persist your preferences in ~/.config/winjitsu/config.ini. ⚙️
  • CLI Overrides: Override config values when starting the daemon — 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

🐍 From PyPI

pip install WinJitsu

xdotool still has to come from your distribution (see Requirements above).

Building and Installing Wheel

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.

  1. Install build tools:

    pip install build
    
  2. Build the package:

    python3 -m build
    
  3. Install the wheel:

    pip install dist/winjitsu-*-py3-none-any.whl --force-reinstall
    
  4. 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]

⚠️ WinJitsu requires the daemon to be running. Start it once with winjitsu --daemon before using any action.

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 (keeps its size) 🎯
F Fullscreen (minus padding) 🖥️
U Restore the window's home position 🔙
TF Toggle fullscreen / home position 🔄
TD Move to the next monitor 📺
CC Clear the window state cache 🧹

The home position is where a window was before WinJitsu first moved it. It is kept per window in ~/.cache/winjitsu/state.db and reset whenever the daemon starts or you move the window yourself.


⚙️ 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 --daemon --steps 10                    # Start daemon with snappy animation 💨
winjitsu --daemon --padding 8                   # Start daemon with a cozy fullscreen 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 the daemon 🔄

When the daemon is running, any winjitsu [ACTION] command is sent to it over a Unix socket. The daemon waits a short delay (configurable with --delay-ms) and only runs the last action of a rapid burst, so key repeat collapses into a single, clean move. ✨

💡 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 N
  • Super + Right -> winjitsu E

Happy tiling! 🎉


⚖️ License

This project is licensed under the GPLv3 License – see the LICENSE file for details.

Metadata

Release files for WinJitsu 0.4.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for WinJitsu 0.4.1
File Size Uploaded Provenance Actions
winjitsu-0.4.1.tar.gz 25.0 kB With provenance Details for winjitsu-0.4.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for WinJitsu 0.4.1
File Interpreter ABI Platform Actions
winjitsu-0.4.1-py3-none-any.whl Python 3 none any Details for winjitsu-0.4.1-py3-none-any.whl

Total release size: 52.2 kB

Release files / winjitsu-0.4.1.tar.gz

Download URL winjitsu-0.4.1.tar.gz
Size 25.0 kB
Tags Source
SHA-256 checksum
How to use checksums
fba8b1ddf25937ec01681d833f3b0f1c0c41d15a794ceea03b676bf2407f0899
BLAKE2b-256 checksum
How to use checksums
9813cba9f9fe6922c386a21f12ecc3ced8641d4232870037b8bf2db9130661ae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.

Transparency log

Release files / winjitsu-0.4.1-py3-none-any.whl

Download URL winjitsu-0.4.1-py3-none-any.whl
Size 27.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ce83387225731d9b583845f552a88b410d9edffe53835ced8b18ed8b9eb554bf
BLAKE2b-256 checksum
How to use checksums
3af2e6880bcf5dacd9214d4932da8dcde68680ad9bb3df5e4379ff8f9f338b44
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.

Transparency log

Security for WinJitsu 0.4.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for winjitsu-0.4.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page