summaryrefslogtreecommitdiff
path: root/install.sh
diff options
context:
space:
mode:
Diffstat (limited to 'install.sh')
-rwxr-xr-xinstall.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/install.sh b/install.sh
new file mode 100755
index 0000000..a20832e
--- /dev/null
+++ b/install.sh
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+echo "Installing for the current user"
+echo "Please make sure /usr/local/bin is in your PATH"
+
+/usr/bin/sudo cp distract.py /usr/local/bin/
+/usr/bin/sudo cp timeout /usr/local/bin/
+cp distract.service ~/.config/systemd/user/
+
+echo "Starting distract.service"
+systemctl enable --now --user distract.service
+