From ee261e39e8be8ed3575ffb2118ecff803084cd97 Mon Sep 17 00:00:00 2001 From: PAlexanderFranklin Date: Thu, 1 Aug 2024 17:52:13 -0700 Subject: [PATCH] Add uninstall script --- uninstall.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 uninstall.sh diff --git a/uninstall.sh b/uninstall.sh new file mode 100644 index 0000000..bd69467 --- /dev/null +++ b/uninstall.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +# Stop the service +systemctl --user stop screenmonitor + +# Disable the service +systemctl --user disable screenmonitor + +# Remove the service file +rm ~/.config/systemd/user/screenmonitor.service + +# Reload systemd to apply changes +systemctl --user daemon-reload + +# Optionally remove the script and output directory +rm -rf ~/.screenmonitor + +echo "Service uninstalled successfully for user $USER."