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.

screensaver.yaml 1.3KB

2 年之前
2 年之前
2 年之前
12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. ---
  2. - name: ensure old screensavers are absent
  3. apt:
  4. pkg:
  5. - light-locker
  6. - xscreensaver
  7. state: absent
  8. - name: gdmflexiserver dummy script
  9. copy:
  10. src: gdmflexiserver-fake.sh
  11. dest: /usr/local/bin/gdmflexiserver
  12. mode: 0755
  13. # Bug: https://github.com/mate-desktop/mate-screensaver/issues/57
  14. # https://gist.github.com/alexander255/9b991816418e4e60ee7c
  15. - name: mate-screensaver-helper-inhibition script
  16. copy:
  17. src: mate-screensaver-helper-inhibition.py
  18. dest: /usr/local/bin/mate-screensaver-helper-inhibition
  19. mode: 0755
  20. - import_tasks: dconf.yaml
  21. vars:
  22. dconf_id: screensaver
  23. dconf_lock_settings:
  24. /org/mate/screensaver:
  25. idle-activation-enabled: 'true'
  26. lock-enabled: 'true'
  27. mode:
  28. - single
  29. themes:
  30. - "{{screensaver_theme}}"
  31. /org/mate/desktop/session:
  32. idle-delay: "{{ screensaver_locktime | int }}"
  33. /org/mate/power-manager:
  34. sleep-display-ac: "{{ screensaver_sleeptime | int * 60 }}"
  35. dconf_lock_paths:
  36. - /org/mate/desktop/session/idle-delay
  37. - /org/mate/screensaver/idle-activation-enabled
  38. - /org/mate/screensaver/lock-enabled
  39. - /org/mate/screensaver/mode
  40. - /org/mate/screensaver/themes
  41. - /org/mate/power-manager/sleep-display-ac
  42. when: screensaver_enforce_settings