tony / oxwm

Branch: ed1cbf5
Switch branches/tags
master
tonybtw keybinds... ed1cbf5 2025-09-28
88 lines · 2.8 KB Rendered Raw Blame History
1 #+AUTHOR: Tony
2 #+STARTUP: overview
3
4 * OXWM — DWM but Better (and oxidized)
5 A dynamic window manager written in /Rust🦀/, inspired by dwm but designed to evolve
6 on its own. Configuration is done in Rust source code, keeping with the suckless
7 philosophy of *"edit + recompile."*
8
9 This project is still in its early stages. Currently, it can claim ownership of
10 an X display and log incoming events.
11
12 * ⚙ Installation — Running with Nix Flakes
13 You can set up a reproducible development environment with Rust, Cargo, Xephyr, xterm, and
14 just by using the flake.
15
16 #+begin_src sh
17 git clone https://github.com/tonybanters/oxwm
18 cd oxwm
19
20 # enter the dev shell
21 nix develop
22
23 # build normally
24 cargo build
25 #+end_src
26
27 * Testing Xephyr with Justfile
28 The =justfile= includes a =test= recipe that starts Xephyr on =:1=, launches
29 test clients (xterm, xclock), and runs oxwm in the foreground.
30
31 #+begin_src sh
32 # inside nix develop
33 just test
34 #+end_src
35
36 This should open a new Xephyr window. oxwm will attach to it and log X11
37 events in your host terminal. Clients like xterm/xclock will appear inside Xephyr.
38
39 * OXWM Todo List:
40 ** Reorganization Tasks
41 - [ ] Move keyboard module to folder structure:
42 - [ ] Create =src/keyboard/mod.rs= with re-exports
43 - [ ] Move constants to =src/keyboard/keycodes.rs=
44 - [ ] Move key handlers to =src/keyboard/handlers.rs=
45 - [ ] Update imports in main.rs and window_manager.rs
46 - [ ] Create =src/config.rs= in root directory for future configuration system
47
48 ** Core Window Management
49 - [ ] Fix layout after program is closed (handle UnmapNotify events)
50 - [ ] Add UnmapNotify to event handling
51 - [ ] Remove closed windows from windows vector
52 - [ ] Re-apply layout after window removal
53 - [ ] Add keybind to swap focus between windows
54 - [ ] Track focused window in WindowManager struct
55 - [ ] Implement focus cycling logic
56 - [ ] Add visual focus indication (borders/colors)
57
58 ** Key System Improvements
59 - [ ] Connect config.rs to keyboard system for dynamic keybind generation
60 - [ ] Add more dwm-like keybinds:
61 - [ ] Window focus switching (Alt+J/K)
62 - [ ] Master area resizing
63 - [ ] Layout switching
64 - [ ] Workspace/tag management
65 - [ ] Better error handling for failed key grabs
66
67 ** Layout System
68 - [ ] Add more layout types (monocle, floating)
69 - [ ] Handle window resize requests properly
70 - [ ] Add configurable gaps between windows
71 - [ ] Implement layout switching keybinds
72
73 ** Polish & Features
74 - [ ] Clean window destruction/cleanup
75 - [ ] Handle edge cases (empty window list, invalid windows)
76 - [ ] Add status bar integration
77 - [ ] Better error messages and logging
78
79 ** Priority
80 Reorganization and UnmapNotify handling should be immediate priorities.
81
82 * Status
83 - Rust + x11rb skeleton running
84 - Nix flake devShell available
85 - =just test= launches Xephyr, clients, and oxwm
86
87 * License
88 [[https://www.gnu.org/licenses/gpl-3.0.en.html][GPL]]