Note
This GitHub repository is a curated release mirror.
Active development, issue tracking, and full documentation live on Forgejo:
- Main repo: https://git.evileko.dev/evileko/evilwm
- Project wiki: https://git.evileko.dev/evileko/evilwm/wiki
A Wayland compositor where you write the window manager in Lua. Place windows, move them, tile them, float them — your config, your rules.
Rust provides facts. Lua provides policy.
Rust handles protocols, rendering, input, DRM — the hard real-time stuff. Lua owns everything else: where windows go, how they move, who gets focus, what keys do. No recompiling, no patching C.
cargo build
# Validate a config
cargo run --bin evilwm -- --check-config --config example-config.lua
# Run in a window (nested — great for hacking)
cargo run --bin evilwm -- --backend winit --config example-config.lua
# Run headless (no display needed — perfect for testing)
cargo run --bin evilwm -- --backend headless --config example-config.lua
# Brave? Run on real hardware (spare VT only)
cargo run --bin evilwm --release --features udev -- --backend udev --config example-config.luaAny model you want. The default is an infinite canvas — pan, zoom, place windows anywhere in world-space. But Lua owns every policy decision, so you can shape it into anything. The tiling example turns it into a page-based tiler. The snap-grid example makes everything grid-aligned. You decide.
Lua all the way down. Focus, placement, move/resize, keybindings, compositor-side drawing, fullscreen handling — all scriptable through evil.on.* hooks and the evil.window / evil.canvas / evil.draw APIs.
Headless testing. Write and test window management policy without a display. The headless runtime (--backend headless) gives you deterministic state snapshots you can assert on. Config validation (--check-config) catches mistakes before you run.
Nested and bare-metal. Develop in a window with the winit backend, then deploy to real hardware with the udev/DRM backend.
This mirror ships the full set of example configs — pick one as a starting point:
| Config | Vibe |
|---|---|
examples/config.lua |
Baseline — keybinds, spawn, focus, drawing |
examples/tiling.lua |
Dynamic tiling on fixed pages |
examples/snap-grid.lua |
Grid-snapped movement and resize |
examples/clump.lua |
Windows cluster near each other |
examples/freeform-move.lua |
Minimal — float everything, drag freely |
examples/nested-debug.lua |
Baseline but with Alt instead of Super |
examples/tty-baseline.lua |
Bare-metal TTY profile |
evilwm exposes a Unix socket for external tooling. Query runtime state, list windows, focus, spawn commands, lock/unlock the session, take screenshots.
evilwm --ipc-socket /path/to/socket --ipc-command snapshot
evilwm --ipc-socket /path/to/socket --ipc-command list-windows
evilwm --ipc-socket /path/to/socket --ipc-command spawn --ipc-arg footEverything lives on the wiki:
| Topic | Link |
|---|---|
| Writing your first config | Writing Your First Config |
Full evil.* API reference |
Lua API Guide |
| Hook reference | Hooks Guide |
| Quick reference card | Lua API Cheat Sheet |
| Architecture & philosophy | Architecture and Philosophy |
| Testing & debugging | Testing and Debugging |
| Feature status | Feature Status and Limitations |
cargo build
cargo test --all-targets
cargo test --no-default-features
cargo clippy --all-targets --all-features -- -D warnings
cargo fmt --check
# Validate all shipped configs
for cfg in examples/*.lua; do
cargo run --bin evilwm -- --check-config --config "$cfg"
done| Features | Result |
|---|---|
default (winit,lua,xwayland) |
Nested compositor + Lua + Xwayland |
--features lua,udev (no defaults) |
Standalone TTY/DRM + Lua |
--all-features |
Everything |
GPL-3.0-only