From 0bca7a7eb09f0e094aa721f75d23f771d20c6bf3 Mon Sep 17 00:00:00 2001 From: "Christopher R. Nelson" Date: Sat, 31 Oct 2026 23:51:41 -0400 Subject: Initial wallpaper-switcher pipe menu Common Lisp tool that prints an Openbox pipe menu of the .png/.webp files in ~/.wallpapers, with each item setting the wallpaper via swaybg. Directory, command template and extensions are configurable through ~/.config/wallpaper-switcher/config or command-line options. Co-Authored-By: Claude Opus 5.5 --- Makefile | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..5d95742 --- /dev/null +++ b/Makefile @@ -0,0 +1,23 @@ +LISP ?= sbcl +PREFIX ?= $(HOME)/.local +SBCL = $(LISP) --non-interactive --no-userinit \ + --eval '(require "asdf")' \ + --eval '(asdf:initialize-source-registry (quote (:source-registry (:directory "$(CURDIR)/") :inherit-configuration)))' + +.PHONY: all build test install clean + +all: build + +build: wallpaper-switcher + +wallpaper-switcher: wallpaper-switcher.asd $(wildcard src/*.lisp) + $(SBCL) --eval '(asdf:make "wallpaper-switcher")' + +test: + $(SBCL) --eval '(asdf:test-system "wallpaper-switcher")' + +install: wallpaper-switcher + install -Dm755 wallpaper-switcher $(PREFIX)/bin/wallpaper-switcher + +clean: + rm -f wallpaper-switcher -- cgit v1.2.3