From 85a49d2edd6ceda704a6cdc084e2459174fcda36 Mon Sep 17 00:00:00 2001 From: krolyxon Date: Fri, 16 Jan 2026 23:56:38 +0530 Subject: initial commit --- install.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 install.sh (limited to 'install.sh') diff --git a/install.sh b/install.sh new file mode 100644 index 0000000..bcf7704 --- /dev/null +++ b/install.sh @@ -0,0 +1,23 @@ +#!/bin/bash +set -e + +echo "Installing power-watch..." + +mkdir -p ~/.local/bin +mkdir -p ~/.config/systemd/user + +cp power-watch.sh ~/.local/bin/power-watch.sh +chmod +x ~/.local/bin/power-watch.sh + +cp systemd/power-watch.service ~/.config/systemd/user/ +cp systemd/power-watch.timer ~/.config/systemd/user/ + +systemctl --user daemon-reload +systemctl --user enable --now power-watch.timer + +echo "Enabling lingering..." +sudo loginctl enable-linger "$USER" + +echo "Done! Power Watch is running." +echo "Test with: systemctl --user start power-watch.service" + -- cgit v1.2.3