oxwm

https://git.tonybtw.com/oxwm.git git://git.tonybtw.com/oxwm.git
861 bytes raw
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
23
24
test:
25
	pkill Xephyr || true
26
	Xephyr -screen 1280x800 :1 & sleep 1
27
	DISPLAY=:1 cargo run --release
28
29
init:
30
    cargo run --release -- --init
31
32
edit:
33
    $EDITOR ~/.config/oxwm/config.ron
34
35
check:
36
    cargo clippy -- -W clippy::all
37
    cargo fmt -- --check
38
39
fmt:
40
    cargo fmt
41
42
pre-commit: fmt check build
43
    @echo "✓ All checks passed!"