diff --git a/.gitignore b/.gitignore index e428a99..c43dbec 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ wlr-layer-shell-unstable-v1-protocol.c xdg-shell-protocol.h xdg-shell-protocol.c shaders/ +result/ diff --git a/Makefile b/Makefile index abc5883..fbeec6d 100644 --- a/Makefile +++ b/Makefile @@ -22,6 +22,11 @@ wlr-layer-shell-unstable-v1-protocol.c: $(WAYLAND_SCANNER) private-code protocols/wlr-layer-shell-unstable-v1.xml $@ wlr-layer-shell-unstable-v1-protocol.o: wlr-layer-shell-unstable-v1-protocol.h +PREFIX ?= /usr/local +install: glonkers + install -D -t $(DESTDIR)$(PREFIX)/bin glonkers + install -D -t $(DESTDIR)$(PREFIX)/share/man/man1 glonkers.1 + clean: rm -f *.o xdg-shell-protocol* wlr-layer-shell-unstable* glonkers diff --git a/flake.nix b/flake.nix index a9f1b5a..77c51e8 100644 --- a/flake.nix +++ b/flake.nix @@ -23,10 +23,7 @@ buildInputs = with pkgs; [ libGL ]; - installPhase = '' - mkdir -p $out/bin - cp glonkers $out/bin - ''; + makeFlags = [ "PREFIX=$(out)" ]; }; devShell = pkgs.mkShell { packages = diff --git a/glonkers.1 b/glonkers.1 new file mode 100644 index 0000000..0cf7bb7 --- /dev/null +++ b/glonkers.1 @@ -0,0 +1,29 @@ +.TH glonkers 1 "February 2026" "1.0" "glonkers man page" +.SH NAME +glonkers \- Create windows and wallpapers with glsl fragment shaders. +.SH SYNOPSIS +glonkers [OPTIONS]... [FILE] +.SH OPTIONS +.PP +--window +.RS 4 +Create a window. +.RE +.PP +--layer +.RS 4 +Create wallpaper. +.RE +.PP +--output +.RS 4 +Specify in the following arguments which outputs (monitors) that should be +rendered to. \fB--\fR can be used to end selection. Use something like +\fBwlr-randr\fR(1) to find out monitor names. +.RE +.SH SEE ALSO +\fBwlr-randr\fR(1) +.PP +.SH AUTHOR +Rakarake (raka@rakarake.xyz) +