diff options
author | David Runge <dave@sleepmap.de> | 2015-03-31 02:34:10 +0200 |
---|---|---|
committer | David Runge <dave@sleepmap.de> | 2015-03-31 02:34:10 +0200 |
commit | 6ff01bc289c1c0d93d1bc0049d18cb11f79ca82a (patch) | |
tree | 53a8475f44ba8e43d5ac71bcb8c6efe2ecb88664 /user | |
parent | 4b5408fc05fe2f6988b606ca3e0bfb5ddb3d01f2 (diff) | |
download | uenv-6ff01bc289c1c0d93d1bc0049d18cb11f79ca82a.tar.gz uenv-6ff01bc289c1c0d93d1bc0049d18cb11f79ca82a.tar.bz2 uenv-6ff01bc289c1c0d93d1bc0049d18cb11f79ca82a.tar.xz uenv-6ff01bc289c1c0d93d1bc0049d18cb11f79ca82a.zip |
postpone-screensaver.{service,timer}: Adding first version of service and timer unit.
Diffstat (limited to 'user')
-rw-r--r-- | user/postpone-screensaver.service | 12 | ||||
-rw-r--r-- | user/postpone-screensaver.timer | 9 |
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 |