Bläddra i källkod

screensaver is handled in own role

master
förälder
incheckning
979ffd6103
2 ändrade filer med 34 tillägg och 35 borttagningar
  1. +34
    -0
      tasks/screensaver.yaml
  2. +0
    -35
      templates/Xresources.xscreensaver.j2

+ 34
- 0
tasks/screensaver.yaml Visa fil

@@ -0,0 +1,34 @@
---

- name: ensure old screensavers are absent
apt:
pkg:
- light-locker
state: absent

- name: uninstall light-locker-settings
file:
path: "{{ item }}"
state: absent
with_items:
- /usr/bin/light-locker-settings
- /usr/share/applications/light-locker-settings.desktop
- /usr/share/light-locker-settings
- /usr/share/doc/light-locker-settings
- /opt/light-locker-settings-1.5.3
- /opt/light-locker-settings-1.5.3.tar.bz2

- name: install xscreensaver
apt:
pkg: xscreensaver

- name: xscreensaver default settings
template:
src: Xresources.xscreensaver.j2
dest: /etc/X11/Xresources/xscreensaver

- name: gdmflexiserver dummy script
copy:
src: gdmflexiserver-fake.sh
dest: /usr/local/bin/gdmflexiserver
mode: 0755

+ 0
- 35
templates/Xresources.xscreensaver.j2 Visa fil

@@ -1,35 +0,0 @@
xscreensaver.mode: blank

xscreensaver.timeout: {{ (xscreensaver_timeout / 60 / 60) | round(0,'floor') | int }}:{{ (xscreensaver_timeout / 60 % 60) | round(0,'floor') | int }}:{{ xscreensaver_timeout % 60 }}
xscreensaver.lockTimeout: {{ (xscreensaver_timeout / 60 / 60) | round(0,'floor') | int }}:{{ (xscreensaver_timeout / 60 % 60) | round(0,'floor') | int }}:{{ xscreensaver_timeout % 60 }}
xscreensaver.passwdTimeout: 0:00:30

{% if xscreensaver_dpms %}
xscreensaver.dpmsEnabled: True
xscreensaver.dpmsQuickoffEnabled: True
xscreensaver.dpmsStandby: {{ (xscreensaver_timeout / 60 / 60) | round(0,'floor') | int }}:{{ (xscreensaver_timeout / 60 % 60) | round(0,'floor') | int }}:{{ xscreensaver_timeout % 60 }}
xscreensaver.dpmsSuspend: {{ (xscreensaver_timeout / 60 / 60) | round(0,'floor') | int }}:{{ (xscreensaver_timeout / 60 % 60) | round(0,'floor') | int }}:{{ xscreensaver_timeout % 60 }}
xscreensaver.dpmsOff: {{ (xscreensaver_timeout / 60 / 60) | round(0,'floor') | int }}:{{ (xscreensaver_timeout / 60 % 60) | round(0,'floor') | int }}:{{ xscreensaver_timeout % 60 }}
{% else %}
xscreensaver.dpmsEnabled: False
xscreensaver.dpmsQuickoffEnabled: False
{% endif %}

xscreensaver.cycle: 0:15:00

xscreensaver.grabDesktopImages: False
xscreensaver.grabVideoFrames: False
xscreensaver.chooseRandomImages: True

xscreensaver.lock: True

xscreensaver.fade: True
xscreensaver.unfade: False
xscreensaver.fadeSeconds: 0:00:03

xscreensaver.splash: False

xscreensaver.passwd.heading.label: XScreenSaver
xscreensaver.passwd.body.label: Dieser Bildschirm ist gesperrt.
xscreensaver.passwd.unlock.label: OK
xscreensaver.passwd.login.label: Benutzer wechseln

Laddar…
Avbryt
Spara