Parcourir la source

mate-power-manager

master
Parent
révision
05343a3b15
2 fichiers modifiés avec 6 ajouts et 1 suppressions
  1. +1
    -0
      defaults/main.yaml
  2. +5
    -1
      tasks/main.yaml

+ 1
- 0
defaults/main.yaml Voir le fichier

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

+ 5
- 1
tasks/main.yaml Voir le fichier

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

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

- name: gdmflexiserver dummy script
copy:
@@ -40,9 +41,12 @@
themes: "['{{screensaver_theme}}']"
/org/mate/desktop/session:
idle-delay: "{{ screensaver_locktime | int }}"
/org/mate/power-manager:
sleep-display-ac: "{{ screensaver_sleeptime | int * 60 }}"
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
- /org/mate/power-manager/sleep-display-ac