Browse Source

mate-power-manager

master
parent
commit
05343a3b15
2 changed files with 6 additions and 1 deletions
  1. +1
    -0
      defaults/main.yaml
  2. +5
    -1
      tasks/main.yaml

+ 1
- 0
defaults/main.yaml View File

@@ -1,3 +1,4 @@
--- ---
screensaver_locktime: 10 screensaver_locktime: 10
screensaver_theme: screensavers-popsquares screensaver_theme: screensavers-popsquares
screensaver_sleeptime: "{{screensaver_locktime}}"

+ 5
- 1
tasks/main.yaml View File

@@ -7,12 +7,13 @@
- xscreensaver - xscreensaver
state: absent state: absent


- name: install mate-screensaver
- name: install required debian packages
apt: apt:
pkg: pkg:
- mate-screensaver - mate-screensaver
- xscreensaver-gl - xscreensaver-gl
- python3 - python3
- mate-power-manager


- name: gdmflexiserver dummy script - name: gdmflexiserver dummy script
copy: copy:
@@ -40,9 +41,12 @@
themes: "['{{screensaver_theme}}']" themes: "['{{screensaver_theme}}']"
/org/mate/desktop/session: /org/mate/desktop/session:
idle-delay: "{{ screensaver_locktime | int }}" idle-delay: "{{ screensaver_locktime | int }}"
/org/mate/power-manager:
sleep-display-ac: "{{ screensaver_sleeptime | int * 60 }}"
dconf_lock_paths: dconf_lock_paths:
- /org/mate/desktop/session/idle-delay - /org/mate/desktop/session/idle-delay
- /org/mate/screensaver/idle-activation-enabled - /org/mate/screensaver/idle-activation-enabled
- /org/mate/screensaver/lock-enabled - /org/mate/screensaver/lock-enabled
- /org/mate/screensaver/mode - /org/mate/screensaver/mode
- /org/mate/screensaver/themes - /org/mate/screensaver/themes
- /org/mate/power-manager/sleep-display-ac