aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPolesznyák Márk <contact@pml68.dev>2026-01-15 23:00:26 +0100
committerPolesznyák Márk <contact@pml68.dev>2026-01-15 23:00:26 +0100
commitb68701e2def4eb56df367f484d43201c5479e19d (patch)
treed99fcfff687d88d8bafadf24aa20b332af3a164f /Makefile
parentchore: cleanup of gitignore(s), fetcha Makefile and license (diff)
downloadsuckless-setup-b68701e2def4eb56df367f484d43201c5479e19d.tar.gz
feat: replace install script with Makefile
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile26
1 files changed, 26 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..e64860e
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,26 @@
+PROGRAMS = dwm dmenu slstatus st fetcha
+
+default:
+ @echo "Available jobs:"
+ @printf "\tinstall: installs all included suckless programs\n"
+ @printf "\tinstall-laptop: installs all included suckless programs \
+ with the laptop config changes applied\n"
+ @printf "\twallpaper: uses feh to set the wallpaper\n"
+
+install:
+ for prog in $(PROGRAMS); do make -C $$prog clean install; done
+ cp picom.conf /etc/xdg/picom.conf
+
+install-laptop:
+ git apply laptop.diff
+ $(MAKE) install
+ git restore .
+
+wallpaper:
+ feh --bg-fill $(shell pwd)/wallpaper.jpg || true
+ @echo 'Creating ~/.fehbg'
+ echo '#!/bin/sh' > $(HOME)/.fehbg
+ echo 'feh --no-fehbg --bg-fill $(shell pwd)/wallpaper.jpg' > $(HOME)/.fehbg
+ chmod 755 $(HOME)/.fehbg
+
+.PHONY: default install install-laptop wallpaper