From 273b0260142c021f1c4635544adfc07b4bc8b331 Mon Sep 17 00:00:00 2001 From: Ruakij Date: Sun, 31 Jul 2022 12:51:14 +0200 Subject: [PATCH] Create Makefile for install&remove --- Makefile | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..fddffba --- /dev/null +++ b/Makefile @@ -0,0 +1,29 @@ +KSMSERVER_NOTIFY_CONFIG_PATH=~/.config/ksmserver.notifyrc +SCRIPT_PATH=~/.local/bin/event_screensaver + +.PHONY: install remove +default: install + +install: + # Deploy script + cp -f ./event_screensaver ${SCRIPT_PATH} + # Make executeable + chmod +x ${SCRIPT_PATH} + + # Deploy notifyrc-file + cp ./ksmserver.notifyrc ${KSMSERVER_NOTIFY_CONFIG_PATH} + + # Reload kwin.. + qdbus org.kde.KWin /KWin reconfigure + + # Installed! + + +remove: + # Remove files.. + rm ${SCRIPT_PATH} ${KSMSERVER_NOTIFY_CONFIG_PATH} + + # Reload kwin.. + qdbus org.kde.KWin /KWin reconfigure + + # Removed!