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.

mate-screensaver.yaml 1.9KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. ---
  2. - name: ensure old screensavers are absent
  3. apt:
  4. pkg:
  5. - light-locker
  6. - xscreensaver
  7. state: absent
  8. - name: install required debian packages
  9. apt:
  10. pkg:
  11. - mate-screensaver
  12. - xscreensaver-gl
  13. - python3
  14. - mate-power-manager
  15. - xautolock
  16. - xss-lock
  17. - xbacklight
  18. - i3lock
  19. - name: gdmflexiserver dummy script
  20. copy:
  21. src: gdmflexiserver-fake.sh
  22. dest: /usr/local/bin/gdmflexiserver
  23. mode: 0755
  24. # Bug: https://github.com/mate-desktop/mate-screensaver/issues/57
  25. # https://gist.github.com/alexander255/9b991816418e4e60ee7c
  26. - name: mate-screensaver-helper-inhibition script
  27. copy:
  28. src: mate-screensaver-helper-inhibition.py
  29. dest: /usr/local/bin/mate-screensaver-helper-inhibition
  30. mode: 0755
  31. - name: screensaver settings script
  32. template:
  33. src: screensaver-settings.sh.j2
  34. dest: /usr/local/bin/screensaver-settings
  35. mode: 0755
  36. - name: screensaver start script
  37. template:
  38. src: screensaver-start.sh.j2
  39. dest: /usr/local/bin/screensaver-start
  40. mode: 0755
  41. - name: screensaver lock script
  42. template:
  43. src: screensaver-lock.sh.j2
  44. dest: /usr/local/bin/screensaver-lock
  45. mode: 0755
  46. - import_role:
  47. name: dconf-lock
  48. vars:
  49. dconf_lock_id: screensaver
  50. dconf_lock_settings:
  51. /org/mate/screensaver:
  52. idle-activation-enabled: 'true'
  53. lock-enabled: 'true'
  54. mode: "'single'"
  55. themes: "['{{screensaver_theme}}']"
  56. /org/mate/desktop/session:
  57. idle-delay: "{{ screensaver_locktime | int }}"
  58. /org/mate/power-manager:
  59. sleep-display-ac: "{{ screensaver_sleeptime | int * 60 }}"
  60. dconf_lock_paths:
  61. - /org/mate/desktop/session/idle-delay
  62. - /org/mate/screensaver/idle-activation-enabled
  63. - /org/mate/screensaver/lock-enabled
  64. - /org/mate/screensaver/mode
  65. - /org/mate/screensaver/themes
  66. - /org/mate/power-manager/sleep-display-ac