tony / oxwm

Branch: 52048f6
Switch branches/tags
master
tonybtw Switched from RandR to Xinerama for monitor detection to match dwm's approach. Removed OXWM_MODKEY env var since --config flag handles different configs better. Moved test-config.ron into repo for version control. Fixed monitor-specific window operations to prevent actions from crossing monitor boundaries. bc73085 2025-10-21
48 lines · 1.1 KB Raw Blame History
1 build:
2 cargo build --release
3
4 install: build
5 cp target/release/oxwm ~/.local/bin/oxwm
6 chmod +x ~/.local/bin/oxwm
7 @echo "✓ oxwm installed to ~/.local/bin/oxwm"
8 @echo " Run 'oxwm --init' to create your config"
9
10 uninstall:
11 rm -f ~/.local/bin/oxwm
12 @echo "✓ oxwm uninstalled"
13 @echo " Your config at ~/.config/oxwm/config.ron is preserved"
14
15 clean:
16 cargo clean
17
18 test-clean:
19 pkill Xephyr || true
20 rm -rf ~/.config/oxwm
21 Xephyr -screen 1280x800 :1 & sleep 1
22 DISPLAY=:1 cargo run --release -- --config test-config.ron
23
24 test:
25 pkill Xephyr || true
26 Xephyr -screen 1280x800 :1 & sleep 1
27 DISPLAY=:1 cargo run --release -- --config test-config.ron
28
29 test-multimon:
30 pkill Xephyr || true
31 Xephyr +xinerama -screen 640x480 -screen 640x480 :1 & sleep 1
32 DISPLAY=:1 cargo run --release -- --config test-config.ron
33
34 init:
35 cargo run --release -- --init
36
37 edit:
38 $EDITOR ~/.config/oxwm/config.ron
39
40 check:
41 cargo clippy -- -W clippy::all
42 cargo fmt -- --check
43
44 fmt:
45 cargo fmt
46
47 pre-commit: fmt check build
48 @echo "✓ All checks passed!"