aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to '')
-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