aboutsummaryrefslogtreecommitdiffstats
path: root/xwallpaper
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2023-11-18 23:23:40 +0100
committerMattias Andrée <maandree@kth.se>2023-11-18 23:23:40 +0100
commit0f1df0db903ba576fd17b08197d3066af7a61e5f (patch)
treea59c04307b1382257afa3c3512ec3abadf7e0e47 /xwallpaper
parentUse losetup -d instead of --detach and add clean up (diff)
downloaddotfiles-0f1df0db903ba576fd17b08197d3066af7a61e5f.tar.gz
dotfiles-0f1df0db903ba576fd17b08197d3066af7a61e5f.tar.bz2
dotfiles-0f1df0db903ba576fd17b08197d3066af7a61e5f.tar.xz
A lot of changes
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'xwallpaper')
-rw-r--r--xwallpaper/Makefile11
1 files changed, 3 insertions, 8 deletions
diff --git a/xwallpaper/Makefile b/xwallpaper/Makefile
index 739ab7c..fe200a8 100644
--- a/xwallpaper/Makefile
+++ b/xwallpaper/Makefile
@@ -1,21 +1,16 @@
.POSIX:
-include ../common.mk
XINITRC_ORDER = 20
install:
- $(CHECK_INSTALLED) xcman
- $(CHECK_INSTALLED) pdeath
- $(CHECK_INSTALLED) mate-panel
- -$(CHECK_INSTALLED) mate-settings-daemon
mkdir -p -- ~/.config/X11/xinit/xinitrc.d
- test ! -d ~/.config/X11/xinit/xinitrc.d/$(XINITRC_ORDER)-xwallpaper
+ test ! -e ~/.config/X11/xinit/xinitrc.d/$(XINITRC_ORDER)-xwallpaper || \
+ test -L ~/.config/X11/xinit/xinitrc.d/$(XINITRC_ORDER)-xwallpaper
ln -sf -- ~/.dotfiles/xwallpaper/xinit ~/.config/X11/xinit/xinitrc.d/$(XINITRC_ORDER)-xwallpaper
uninstall:
+ +! ../check-installed xwallpaper
-unlink -- ~/.config/X11/xinit/xinitrc.d/$(XINITRC_ORDER)-xwallpaper
-rmdir -- ~/.config/X11/xinit/xinitrc.d
-rmdir -- ~/.config/X11/xinit
-rmdir -- ~/.config/X11
-
-.PHONY: install uninstall