oxwm

https://git.tonybtw.com/oxwm.git git://git.tonybtw.com/oxwm.git
870 bytes raw
1
build:
2
    zig build -Doptimize=ReleaseSafe
3
4
install: build
5
    sudo cp zig-out/bin/oxwm /usr/bin/oxwm
6
    sudo cp resources/oxwm.desktop /usr/share/xsessions/oxwm.desktop
7
    sudo chmod +x /usr/bin/oxwm
8
    @echo "oxwm installed to /usr/bin/oxwm"
9
10
checkinstall:
11
    checkinstall --pkgname oxwm --exclude /root -y just install
12
13
uninstall:
14
    sudo rm -f /usr/bin/oxwm
15
    @echo "oxwm uninstalled"
16
    @echo "Your config at ~/.config/oxwm/ is preserved"
17
18
clean:
19
    rm -rf zig-out .zig-cache
20
21
test-clean:
22
    pkill Xephyr || true
23
    rm -rf ~/.config/oxwm
24
    Xephyr -screen 1280x800 :1 & sleep 1
25
    DISPLAY=:1 zig build run -- -c resources/config.lua
26
27
test:
28
    zig build xephyr
29
30
test-multimon:
31
    zig build xephyr-multi
32
33
edit:
34
    $EDITOR ~/.config/oxwm/config.lua
35
36
fmt:
37
    zig build fmt
38
39
pre-commit: fmt build
40
    @echo "All checks passed!"
41
42
run:
43
    zig build run