From 602f01f6b854cb5b3368558c68daefd722073d66 Mon Sep 17 00:00:00 2001 From: alterNERDtive Date: Thu, 2 Nov 2023 17:23:47 +0100 Subject: [PATCH] added `make uninstall` --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Makefile b/Makefile index e87c589..0437f97 100644 --- a/Makefile +++ b/Makefile @@ -6,3 +6,10 @@ install: cp systemd/swaybg-swapper.{service,timer} ~/.config/systemd/user/ systemctl --user daemon-reload systemctl --user enable --now swaybg-swapper.timer + +uninstall: + rm -f ~/.local/bin/swaybg-swapper.py + rmdir --ignore-fail-on-non-empty ~/.local/bin + systemctl --user disable --now swaybg-swapper.timer + rm -f ~/.config/systemd/user/swaybg-swapper.{service,timer} + systemctl --user daemon-reload