tony / oxwm

Branch: 5e36ac3
Switch branches/tags
master
tonybtw updated justfile for easier Xephyr testing, added default value for battery. 0415a48 2025-12-14
48 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 chmod +x /usr/bin/oxwm
7 @echo "✓ oxwm installed to /usr/bin/oxwm"
8 @echo " Run 'oxwm --init' to create your config"
9
10 uninstall:
11 rm -f /usr/bin/oxwm
12 @echo "✓ oxwm uninstalled"
13 @echo " Your config at ~/.config/oxwm/ 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 resources/test-config.lua
23
24 test:
25 pkill Xephyr || true
26 Xephyr -screen 1280x800 :2 & sleep 1
27 DISPLAY=:2 cargo run --release -- --config resources/test-config.lua
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 resources/test-config.lua
33
34 init:
35 cargo run --release -- --init
36
37 edit:
38 $EDITOR ~/.config/oxwm/config.lua
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!"