oxwm

https://git.tonybtw.com/oxwm.git git://git.tonybtw.com/oxwm.git
1,249 bytes raw
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
checkinstall:
12
	checkinstall --pkgname oxwm --exclude /root -y just install
13
14
uninstall:
15
    rm -f /usr/bin/oxwm
16
    @echo "✓ oxwm uninstalled"
17
    @echo "  Your config at ~/.config/oxwm/ is preserved"
18
19
clean:
20
    cargo clean
21
22
test-clean:
23
    pkill Xephyr || true
24
    rm -rf ~/.config/oxwm
25
    Xephyr -screen 1280x800 :1 & sleep 1
26
    DISPLAY=:1 cargo run --release -- --config resources/test-config.lua
27
28
test:
29
    pkill Xephyr || true
30
    Xephyr -screen 1280x800 :2 & sleep 1
31
    DISPLAY=:2 cargo run --release -- --config resources/test-config.lua
32
33
test-multimon:
34
    pkill Xephyr || true
35
    Xephyr +xinerama -screen 640x480 -screen 640x480 :1 & sleep 1
36
    DISPLAY=:1 cargo run --release -- --config resources/test-config.lua
37
38
init:
39
    cargo run --release -- --init
40
41
edit:
42
    $EDITOR ~/.config/oxwm/config.lua
43
44
check:
45
    cargo clippy -- -W clippy::all
46
    cargo fmt -- --check
47
48
fmt:
49
    cargo fmt
50
51
pre-commit: fmt check build
52
    @echo "✓ All checks passed!"