tony / oxwm

Branch: 0fc3d43
Switch branches/tags
master
tonybtw Updated hot reload, xmonad style 0fc3d43 2025-10-10
40 lines · 788 B Raw Blame History
1 build:
2 cargo build --release
3
4 install: build
5 sudo cp target/release/oxwm /usr/local/bin/oxwm
6 @echo "✓ oxwm installed to /usr/local/bin/oxwm"
7 @echo " Run 'oxwm --init' to set up your config"
8
9 uninstall:
10 sudo rm -f /usr/local/bin/oxwm
11 @echo "✓ oxwm uninstalled"
12 @echo " Your config at ~/.config/oxwm is preserved"
13
14 clean:
15 cargo clean
16
17 test:
18 pkill Xephyr || true
19 Xephyr -screen 1280x800 :1 & sleep 1
20 DISPLAY=:1 cargo run -- --init
21 DISPLAY=:1 ~/.cache/oxwm/oxwm-binary
22
23 init:
24 cargo run -- --init
25
26 recompile:
27 cargo run -- --recompile
28
29 edit:
30 $EDITOR ~/.config/oxwm/config.rs
31
32 check:
33 cargo clippy -- -W clippy::all
34 cargo fmt -- --check
35
36 fmt:
37 cargo fmt
38
39 pre-commit: fmt check build
40 @echo "✓ All checks passed!"