tony / oxwm

a window manager for x11

Branch: ed1cbf5
Switch branches/tags
master
Go to file New pull request
Clone
Clone with HTTPS
tonybtw keybinds... Latest commit ed1cbf5 2025-09-28
src keybinds... 2025-09-28
.envrc add envrc 2025-09-24
.gitignore add envrc 2025-09-24
Cargo.lock Initial commit. 2025-09-19
Cargo.toml Initial commit. 2025-09-19
flake.lock Initial commit. 2025-09-19
flake.nix add missing xclock package to devshell 2025-09-24
justfile Added layout module, and dynamic tiling layout instead of hard coded layout. Changed just file to just open xephyr, need to run xclock from a 2nd terminal. 2025-09-26
readme.org keybinds... 2025-09-28

readme.org

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.rs with 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 src/config.rs in 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 test launches Xephyr, clients, and oxwm

License

GPL