diff --git a/defaults/main.yaml b/defaults/main.yaml index ed97d53..58cf3a2 100644 --- a/defaults/main.yaml +++ b/defaults/main.yaml @@ -1 +1,3 @@ --- +screensaver_locktime: 15 +screensaver_theme: screensavers-popsquares diff --git a/tasks/main.yaml b/tasks/main.yaml index 7f0382f..7adc736 100644 --- a/tasks/main.yaml +++ b/tasks/main.yaml @@ -11,9 +11,29 @@ apt: pkg: - mate-screensaver + - xscreensaver-gl - name: gdmflexiserver dummy script copy: src: gdmflexiserver-fake.sh dest: /usr/local/bin/gdmflexiserver mode: 0755 + +- import_role: + name: dconf-lock + vars: + dconf_lock_id: screensaver + dconf_lock_settings: + /org/mate/screensaver: + idle-activation-enabled: 'true' + lock-enabled: 'true' + mode: "'single'" + themes: "['{{screensaver_theme}}']" + /org/mate/desktop/session: + idle-delay: "{{ screensaver_locktime | int }}" + dconf_lock_paths: + - /org/mate/desktop/session/idle-delay + - /org/mate/screensaver/idle-activation-enabled + - /org/mate/screensaver/lock-enabled + - /org/mate/screensaver/mode + - /org/mate/screensaver/themes