Skip to main content

🥋 WinJitsu

Platform Python Requires License Latest release Build and tests

Snap your windows into place, with smooth animations.

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. ✨

🌐 Website: https://evilchuck666.github.io/WinJitsu/

🎬 Demo

WinJitsu demo: a terminal snaps to halves, quarters, the center, fullscreen and the next monitor, with each action subtitled

Recorded on a two-monitor X11 desktop, with each action subtitled as it runs. Click the preview to watch the full-resolution video (MP4, 48 s).

✨ 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. ↔️
  • Undo: Every action can be undone, one step at a time, per window. 🔙
  • 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. 🎛️

📥 Download

Channel Package
Arch Linux (AUR) winjitsu
PyPI WinJitsu
GitHub release Wheel (v0.5.2) · Source archive · All downloads

Release notes · SHA256SUMS.txt

🚀 Getting started

🏹 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 below).

▶️ First run

winjitsu --daemon   # start the daemon once per session
winjitsu E          # snap the active window to the right half

📋 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

🎮 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 Undo the last action on the window 🔙
TF Toggle fullscreen (leaving it undoes) 🔄
TD Move to the next monitor 📺
CC Clear the undo history 🧹

Undo works per window: every action WinJitsu performs is stacked, and each U takes the window one step back, maximized again if it was. If you moved the window yourself since the last action, the first U puts it back where that action left it. The history is kept in ~/.cache/winjitsu/state.db (respects $XDG_CACHE_HOME) and cleared whenever the daemon starts or you run CC.

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! 🎉

📚 Learn more

  • Technical guide: configuration file and options, daemon mode, and installing from a wheel or from source.

⚖️ License

WinJitsu is free software released under the GNU General Public License v3.0 (GPL-3.0). See LICENSE.

Metadata

Release files for WinJitsu 0.5.2

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.5.2
File Size Uploaded Provenance Actions
winjitsu-0.5.2.tar.gz 40.8 kB With provenance Details for winjitsu-0.5.2.tar.gz

Built distribution (wheel)

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

Total release size: 76.7 kB

Release files / winjitsu-0.5.2.tar.gz

Download URL winjitsu-0.5.2.tar.gz
Size 40.8 kB
Tags Source
SHA-256 checksum
How to use checksums
677625371fa34bb874753fd3e04d6522017b281ef0220c435564c8e0770df3f0
BLAKE2b-256 checksum
How to use checksums
e8b2f4dcec0acd74d3ffe511a1d9aa189081d1015d958698e750bc851d31e196
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 Nov 15, 2026.

Transparency log

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

Download URL winjitsu-0.5.2-py3-none-any.whl
Size 35.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
33ec1d7677da2ee935d58c2e48e4899daa1bd2922307035fe0733859aea14985
BLAKE2b-256 checksum
How to use checksums
970291acd829d9da1f87761f30ce5e8eef0c7575a34aec25f0853583ed346b0c
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 Nov 15, 2026.

Transparency log

Security for WinJitsu 0.5.2

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.5.2.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 Nov 15, 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