aboutsummaryrefslogtreecommitdiffstats
path: root/user
diff options
context:
space:
mode:
Diffstat (limited to 'user')
-rw-r--r--user/postpone-screensaver.service12
-rw-r--r--user/postpone-screensaver.timer9
2 files changed, 21 insertions, 0 deletions
diff --git a/user/postpone-screensaver.service b/user/postpone-screensaver.service
new file mode 100644
index 0000000..92211f8
--- /dev/null
+++ b/user/postpone-screensaver.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Dynamic DPMS settings service
+After=graphical.target
+
+[Service]
+Nice=19
+IOSchedulingClass=2
+IOSchedulingPriority=7
+EnvironmentFile=-/etc/conf.d/postpone-screensaver
+EnvironmentFile=-/home/%u/.config/postpone-screensaver
+ExecStart=/usr/lib/systemd/scripts/postpone-screensaver
+
diff --git a/user/postpone-screensaver.timer b/user/postpone-screensaver.timer
new file mode 100644
index 0000000..9e99279
--- /dev/null
+++ b/user/postpone-screensaver.timer
@@ -0,0 +1,9 @@
+[Unit]
+Description=Minutely check if the screensaver has to be stopped
+
+[Timer]
+OnStartupSec=7m
+OnUnitActiveSec=7m
+
+[Install]
+WantedBy=default.target