From 6ff01bc289c1c0d93d1bc0049d18cb11f79ca82a Mon Sep 17 00:00:00 2001 From: David Runge Date: Tue, 31 Mar 2015 02:34:10 +0200 Subject: postpone-screensaver.{service,timer}: Adding first version of service and timer unit. --- user/postpone-screensaver.service | 12 ++++++++++++ user/postpone-screensaver.timer | 9 +++++++++ 2 files changed, 21 insertions(+) create mode 100644 user/postpone-screensaver.service create mode 100644 user/postpone-screensaver.timer 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 -- cgit v1.2.3-70-g09d2