25개 이상의 토픽을 선택하실 수 없습니다. 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

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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-lock.yaml
  21. vars:
  22. dconf_lock_id: screensaver
  23. dconf_lock_settings:
  24. /org/mate/screensaver:
  25. idle-activation-enabled: 'true'
  26. lock-enabled: 'true'
  27. mode: "'single'"
  28. themes: "['{{screensaver_theme}}']"
  29. /org/mate/desktop/session:
  30. idle-delay: "{{ screensaver_locktime | int }}"
  31. /org/mate/power-manager:
  32. sleep-display-ac: "{{ screensaver_sleeptime | int * 60 }}"
  33. dconf_lock_paths:
  34. - /org/mate/desktop/session/idle-delay
  35. - /org/mate/screensaver/idle-activation-enabled
  36. - /org/mate/screensaver/lock-enabled
  37. - /org/mate/screensaver/mode
  38. - /org/mate/screensaver/themes
  39. - /org/mate/power-manager/sleep-display-ac
  40. when: screensaver_enforce_settings