You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

20 lines
539B

  1. {{ ansible_managed | comment }}
  2. [Unit]
  3. Description=Screensaver
  4. PartOf=graphical-session.target
  5. [Service]
  6. Type=notify
  7. ExecStart=xsecurelock -- systemd-notify --ready
  8. NotifyAccess=all
  9. EnvironmentFile=%h/.lockscreen.env
  10. ExecStartPost=numlockx off
  11. ExecStartPost=xset dpms $XSECURELOCK_AUTH_TIMEOUT $XSECURELOCK_AUTH_TIMEOUT $XSECURELOCK_AUTH_TIMEOUT
  12. ExecStopPost=xset dpms {{ display_sleeptime | int }} {{ display_sleeptime | int }} {{ display_sleeptime | int }}
  13. ExecStopPost=xset dpms force on
  14. [Install]
  15. WantedBy=graphical-session.target