tony / oxwm

Added documentation for bsd, and fixed readme in general. Browse files
tonybanters committed 2026-03-07 parent bd9c85a commit d7c5cd2e438fe5540a561a783e38f34770553646
Showing 1 changed file with 17 additions and 94 deletions. UnifiedSplit
+17 −94 readme.org
@@ -3,82 +3,20 @@
3 3
4 [[file:./images/oxwm1.png]] 4 [[file:./images/oxwm1.png]]
5 5
6 -* Table of Contents :toc:
7 -- [[#oxwm--dwm-but-better][OXWM — DWM but Better]]
8 -- [[#installation][Installation]]
9 - - [[#nixos-with-flakes][NixOS (with Flakes)]]
10 - - [[#arch-linux][Arch Linux]]
11 - - [[#building-from-source][Building from Source]]
12 - - [[#setting-up-oxwm][Setting up OXWM]]
13 -- [[#configuration][Configuration]]
14 - - [[#quick-example][Quick Example]]
15 - - [[#features][Features]]
16 - - [[#key-configuration-areas][Key Configuration Areas]]
17 - - [[#creating-your-config][Creating Your Config]]
18 -- [[#contributing][Contributing]]
19 -- [[#key-bindings][Key Bindings]]
20 -- [[#features-1][Features]]
21 -- [[#testing-with-xephyr][Testing with Xephyr]]
22 -- [[#project-structure][Project Structure]]
23 -- [[#architecture-notes][Architecture Notes]]
24 - - [[#lua-configuration-system][Lua Configuration System]]
25 - - [[#tag-system][Tag System]]
26 - - [[#status-bar][Status Bar]]
27 - - [[#layout-system][Layout System]]
28 -- [[#current-todo-list][Current Todo List:]]
29 - - [[#priority-high-04][PRIORITY High]]
30 -- [[#development-roadmap][Development Roadmap]]
31 - - [[#current-focus-v080][Current Focus (v0.8.0)]]
32 - - [[#completed-features-88][Completed Features]]
33 - - [[#future-enhancements-][Future Enhancements]]
34 -- [[#license][License]]
35 -
36 * OXWM — DWM but Better 6 * OXWM — DWM but Better
37 A dynamic window manager written in Zig, inspired by dwm but designed to evolve beyond it. OXWM features a clean, functional Lua API for configuration with hot-reloading support, ditching the suckless philosophy of *"edit + recompile"*. Instead, we focus on lowering friction for users with sane defaults, LSP-powered autocomplete, and instant configuration changes without restarting your X session. 7 A dynamic window manager written in Zig, inspired by dwm but designed to evolve beyond it. OXWM features a clean, functional Lua API for configuration with hot-reloading support, ditching the suckless philosophy of *"edit + recompile"*. Instead, we focus on lowering friction for users with sane defaults, LSP-powered autocomplete, and instant configuration changes without restarting your X session.
38 8
39 *Documentation:* [[https://ox-docs.vercel.app/][ox-docs.vercel.app]] 9 *Documentation:* [[https://ox-docs.vercel.app/][ox-docs.vercel.app]]
40 10
41 * Installation 11 * Installation
42 -** NixOS (with Flakes) 12 +** NixOS (nixpkgs)
43 -*** Adding OXWM to your flake inputs 13 +Add Oxwm to your =configuration.nix= like so:
44 -Add oxwm to your =flake.nix= inputs:
45 -
46 -#+begin_src nix
47 -{
48 - inputs = {
49 - nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
50 - oxwm.url = "github:tonybanters/oxwm";
51 - oxwm.inputs.nixpkgs.follows = "nixpkgs";
52 - };
53 -
54 - outputs = { self, nixpkgs, oxwm, ... }: {
55 - nixosConfigurations.yourhost = nixpkgs.lib.nixosSystem {
56 - system = "x86_64-linux";
57 - modules = [
58 - ./configuration.nix
59 - oxwm.nixosModules.default
60 - ];
61 - };
62 - };
63 -}
64 -#+end_src
65 -
66 -*** Enabling OXWM in configuration.nix
67 -Add this to your =configuration.nix=:
68 14
69 #+begin_src nix 15 #+begin_src nix
70 { config, pkgs, ... }: 16 { config, pkgs, ... }:
71 17
72 { 18 {
73 - services.xserver = { 19 + services.xserver.windowManager.oxwm.enable = true;
74 - enable = true;
75 -
76 - windowManager.oxwm.enable = true;
77 - };
78 -
79 - # Recommended: Install a display manager
80 - services.xserver.displayManager.lightdm.enable = true;
81 - # Or use another display manager like sddm, gdm, etc.
82 } 20 }
83 #+end_src 21 #+end_src
84 22
@@ -87,19 +25,6 @@ After rebuilding your system with =sudo nixos-rebuild switch=, log in via your d
87 25
88 On first launch, your initial config file will be automatically created and placed in =~/.config/oxwm/config.lua=. Edit it and reload with =Mod+Shift+R=. 26 On first launch, your initial config file will be automatically created and placed in =~/.config/oxwm/config.lua=. Edit it and reload with =Mod+Shift+R=.
89 27
90 -*** Advanced: Using a specific oxwm version
91 -If you want to pin or customize the oxwm package:
92 -
93 -#+begin_src nix
94 -{
95 - services.xserver.windowManager.oxwm = {
96 - enable = true;
97 - # Use a specific version or build with custom options
98 - package = oxwm.packages.${pkgs.system}.default;
99 - };
100 -}
101 -#+end_src
102 -
103 *** Development setup with Nix 28 *** Development setup with Nix
104 For development, use the provided dev shell: 29 For development, use the provided dev shell:
105 30
@@ -112,8 +37,7 @@ cd oxwm
112 nix develop 37 nix develop
113 38
114 # Build and test 39 # Build and test
115 -zig build 40 +zig build -Doptimize=ReleaseSmall
116 -zig build test
117 #+end_src 41 #+end_src
118 42
119 ** Arch Linux 43 ** Arch Linux
@@ -127,23 +51,29 @@ This will automatically put a desktop session file into your xsessions directory
127 Manually: 51 Manually:
128 Install dependencies: 52 Install dependencies:
129 #+begin_src sh 53 #+begin_src sh
130 -sudo pacman -S zig lua libx11 libxft freetype2 fontconfig libxinerama 54 +sudo pacman -S zig libx11 libxft freetype2 fontconfig libxinerama
131 #+end_src 55 #+end_src
132 See Build from source 56 See Build from source
133 57
134 ** Building from Source 58 ** Building from Source
59 +Note, on many BSD systems, the zig compiler will agressively attempt to remove debug symbols which is causing a known linker issue. Please use this method on BSD:
60 +
135 #+begin_src sh 61 #+begin_src sh
136 git clone https://github.com/tonybanters/oxwm 62 git clone https://github.com/tonybanters/oxwm
137 cd oxwm 63 cd oxwm
138 -zig build -Doptimize=ReleaseFast 64 +zig build
139 -zig build install-system # installs to /usr/bin, adds desktop file and man page
140 #+end_src 65 #+end_src
141 66
142 -To uninstall: 67 +On other legacy distros, just use:
68 +
143 #+begin_src sh 69 #+begin_src sh
144 -zig build uninstall 70 +git clone https://github.com/tonybanters/oxwm
71 +cd oxwm
72 +zig build -Doptimize=ReleaseSmall --prefix /usr
145 #+end_src 73 #+end_src
146 74
75 +
76 +
147 ** Setting up OXWM 77 ** Setting up OXWM
148 *** Without a display manager (startx) 78 *** Without a display manager (startx)
149 Add the following to your =~/.xinitrc=: 79 Add the following to your =~/.xinitrc=:
@@ -204,12 +134,6 @@ oxwm.bar.set_blocks({
204 }) 134 })
205 #+end_src 135 #+end_src
206 136
207 -** Features
208 -- *Hot-reload*: Changes take effect immediately with =Mod+Shift+R= (no X restart needed)
209 -- *LSP Support*: Full autocomplete and type hints for the API (=oxwm.lua= definitions included)
210 -- *Functional API*: Clean, discoverable functions instead of nested tables
211 -- *No compilation*: Edit and reload instantly
212 -
213 ** Key Configuration Areas 137 ** Key Configuration Areas
214 Edit =~/.config/oxwm/config.lua= to customize: 138 Edit =~/.config/oxwm/config.lua= to customize:
215 - Basic settings (terminal, modkey, tags) 139 - Basic settings (terminal, modkey, tags)
@@ -410,8 +334,8 @@ The tiling layout divides the screen into a master area (left half) and stack ar
410 - Similar to dwm's zoom function (=Mod+Return=) 334 - Similar to dwm's zoom function (=Mod+Return=)
411 - Should work bidirectionally 335 - Should work bidirectionally
412 * Development Roadmap 336 * Development Roadmap
413 -** Current Focus (v0.8.0) 337 +** Current Focus (v0.11.3)
414 -- Refactoring to align with dwm's proven patterns 338 +- Implement featuers such as systray to make the bar more robust.
415 - Improving core window management reliability 339 - Improving core window management reliability
416 - Maintaining Lua config and bar features while simplifying internals 340 - Maintaining Lua config and bar features while simplifying internals
417 341
@@ -430,7 +354,6 @@ The tiling layout divides the screen into a master area (left half) and stack ar
430 - [ ] Dynamic monitor hotplugging (currently only on startup) 354 - [ ] Dynamic monitor hotplugging (currently only on startup)
431 - [ ] External bar support (polybar, waybar compatibility) 355 - [ ] External bar support (polybar, waybar compatibility)
432 - [ ] Additional layouts (deck, spiral, dwindle) 356 - [ ] Additional layouts (deck, spiral, dwindle)
433 -- [ ] Window minimize/restore
434 357
435 * License 358 * License
436 [[https://www.gnu.org/licenses/gpl-3.0.en.html][GPL v3]] 359 [[https://www.gnu.org/licenses/gpl-3.0.en.html][GPL v3]]