aboutsummaryrefslogtreecommitdiff
path: root/uninstall.sh
diff options
context:
space:
mode:
Diffstat (limited to 'uninstall.sh')
-rw-r--r--uninstall.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/uninstall.sh b/uninstall.sh
new file mode 100644
index 0000000..8a37073
--- /dev/null
+++ b/uninstall.sh
@@ -0,0 +1,14 @@
+#!/bin/bash
+set -e
+
+echo "Removing power-watch..."
+
+systemctl --user disable --now power-watch.timer || true
+
+rm -f ~/.config/systemd/user/power-watch.service
+rm -f ~/.config/systemd/user/power-watch.timer
+rm -f ~/.local/bin/power-watch.sh
+
+systemctl --user daemon-reload
+
+echo "Removed."