diff options
author | Mattias Andrée <maandree@kth.se> | 2021-06-25 20:05:44 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2021-06-25 20:05:44 +0200 |
commit | b692ae97fa61b8ecab7ffc2d61497b31b439ed01 (patch) | |
tree | 5f417ff987829f9353adac95c122225d6af833c8 /xorg-server | |
parent | Remove ~/.ssh when ssh is uninstalled (diff) | |
download | dotfiles-b692ae97fa61b8ecab7ffc2d61497b31b439ed01.tar.gz dotfiles-b692ae97fa61b8ecab7ffc2d61497b31b439ed01.tar.bz2 dotfiles-b692ae97fa61b8ecab7ffc2d61497b31b439ed01.tar.xz |
Link ~/.config/backgrounds to ~/.dotfiles/.secrets/backgrounds
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'xorg-server')
-rw-r--r-- | xorg-server/Makefile | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/xorg-server/Makefile b/xorg-server/Makefile new file mode 100644 index 0000000..126b611 --- /dev/null +++ b/xorg-server/Makefile @@ -0,0 +1,16 @@ +.POSIX: +include ../common.mk + +install: + if test -L ~/.config/backgrounds; then \ + test "$$(readlink -- ~/.config/backgrounds)" = ~/.dotfiles/.secrets/backgrounds; \ + else \ + test ! -e ~/.config/backgrounds && \ + ln -sf -- ~/.dotfiles/.secrets/backgrounds ~/.config/backgrounds; \ + fi + mkdir -p -- ../.secrets/backgrounds + +uninstall: + -unlink -- ~/.config/backgrounds + +.PHONY: install uninstall |