Browse Source

mate-screensaver system wide settings and lock

master
parent
commit
028f03e9a0
2 changed files with 22 additions and 0 deletions
  1. +2
    -0
      defaults/main.yaml
  2. +20
    -0
      tasks/main.yaml

+ 2
- 0
defaults/main.yaml View File

@@ -1 +1,3 @@
--- ---
screensaver_locktime: 15
screensaver_theme: screensavers-popsquares

+ 20
- 0
tasks/main.yaml View File

@@ -11,9 +11,29 @@
apt: apt:
pkg: pkg:
- mate-screensaver - mate-screensaver
- xscreensaver-gl


- name: gdmflexiserver dummy script - name: gdmflexiserver dummy script
copy: copy:
src: gdmflexiserver-fake.sh src: gdmflexiserver-fake.sh
dest: /usr/local/bin/gdmflexiserver dest: /usr/local/bin/gdmflexiserver
mode: 0755 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