OXWM β DWM but Better (and oxidized)
A dynamic window manager written in Rustπ¦, inspired by dwm but designed to evolve on its own. Configuration is done in Rust source code, keeping with the suckless philosophy of "edit + recompile."
This project is still in its early stages. Currently, it can claim ownership of an X display and log incoming events.
β Installation β Running with Nix Flakes
You can set up a reproducible development environment with Rust, Cargo, Xephyr, xterm, and just by using the flake.
git clone https://github.com/tonybanters/oxwm
cd oxwm
# enter the dev shell
nix develop
# build normally
cargo build
Testing Xephyr with Justfile
The justfile includes a test recipe that starts Xephyr on :1, launches
test clients (xterm, xclock), and runs oxwm in the foreground.
# inside nix develop
just test
This should open a new Xephyr window. oxwm will attach to it and log X11 events in your host terminal. Clients like xterm/xclock will appear inside Xephyr.
OXWM Todo List:
Reorganization Tasks
- β Move keyboard module to folder structure:
- β Create
src/keyboard/mod.rswith re-exports - β Move constants to
src/keyboard/keycodes.rs - β Move key handlers to
src/keyboard/handlers.rs - β Update imports in main.rs and window_manager.rs
- β Create
- β Create
src/config.rsin root directory for future configuration system
Core Window Management
- β Fix layout after program is closed (handle UnmapNotify events)
- β Add UnmapNotify to event handling
- β Remove closed windows from windows vector
- β Re-apply layout after window removal
- β Add keybind to swap focus between windows
- β Track focused window in WindowManager struct
- β Implement focus cycling logic
- β Add visual focus indication (borders/colors)
Key System Improvements
- β Connect config.rs to keyboard system for dynamic keybind generation
- β Add more dwm-like keybinds:
- β Window focus switching (Alt+J/K)
- β Master area resizing
- β Layout switching
- β Workspace/tag management
- β Better error handling for failed key grabs
Layout System
- β Add more layout types (monocle, floating)
- β Handle window resize requests properly
- β Add configurable gaps between windows
- β Implement layout switching keybinds
Polish & Features
- β Clean window destruction/cleanup
- β Handle edge cases (empty window list, invalid windows)
- β Add status bar integration
- β Better error messages and logging
Priority
Reorganization and UnmapNotify handling should be immediate priorities.
Status
- Rust + x11rb skeleton running
- Nix flake devShell available
just testlaunches Xephyr, clients, and oxwm