tony / oxwm

Branch: dc07470
Switch branches/tags
master
cora Fix indentation in justfile dc07470 2025-12-27
49 lines · 1.1 KB Raw Blame History
1 build:
2 cargo build --release
3
4 install: build
5 cp target/release/oxwm /usr/bin/oxwm
6 cp resources/oxwm.desktop /usr/share/xsessions/oxwm.desktop
7 chmod +x /usr/bin/oxwm
8 @echo "✓ oxwm installed to /usr/bin/oxwm"
9 @echo " Run 'oxwm --init' to create your config"
10
11 uninstall:
12 rm -f /usr/bin/oxwm
13 @echo "✓ oxwm uninstalled"
14 @echo " Your config at ~/.config/oxwm/ is preserved"
15
16 clean:
17 cargo clean
18
19 test-clean:
20 pkill Xephyr || true
21 rm -rf ~/.config/oxwm
22 Xephyr -screen 1280x800 :1 & sleep 1
23 DISPLAY=:1 cargo run --release -- --config resources/test-config.lua
24
25 test:
26 pkill Xephyr || true
27 Xephyr -screen 1280x800 :2 & sleep 1
28 DISPLAY=:2 cargo run --release -- --config resources/test-config.lua
29
30 test-multimon:
31 pkill Xephyr || true
32 Xephyr +xinerama -screen 640x480 -screen 640x480 :1 & sleep 1
33 DISPLAY=:1 cargo run --release -- --config resources/test-config.lua
34
35 init:
36 cargo run --release -- --init
37
38 edit:
39 $EDITOR ~/.config/oxwm/config.lua
40
41 check:
42 cargo clippy -- -W clippy::all
43 cargo fmt -- --check
44
45 fmt:
46 cargo fmt
47
48 pre-commit: fmt check build
49 @echo "✓ All checks passed!"