Преглед изворни кода

fix screensaver setup

master
Markus Brechtel пре 5 година
родитељ
комит
03d74f8b59
5 измењених фајлова са 60 додато и 40 уклоњено
  1. +2
    -0
      files/gdmflexiserver-fake.sh
  2. +0
    -38
      tasks/light-locker-settings.yaml
  3. +34
    -0
      tasks/screensaver.yaml
  4. +0
    -2
      tasks/xfce.yaml
  5. +24
    -0
      templates/Xresources.xscreensaver.j2

+ 2
- 0
files/gdmflexiserver-fake.sh Прегледај датотеку

@@ -0,0 +1,2 @@
#!/bin/sh
/usr/bin/dm-tool switch-to-greeter

+ 0
- 38
tasks/light-locker-settings.yaml Прегледај датотеку

@@ -1,38 +0,0 @@
---
- name: light-locker-settings dependencies
apt:
pkg:
- gettext
- intltool
- python3-psutil
- build-essential

- name: download light-locker-settings
get_url:
url: https://github.com/Antergos/light-locker-settings/archive/1.5.3.tar.gz
dest: /opt/light-locker-settings-1.5.3.tar.bz2
checksum: sha256:9174ee896d9ea7f41cb14eed61bea473de4b57278858bbd32045f1ed64858fcd

- name: unpack light-locker-settings
unarchive:
src: /opt/light-locker-settings-1.5.3.tar.bz2
remote_src: yes
dest: /opt

- name: configure script for light-locker-settings
command: ./configure --prefix=/usr --python=python3
args:
chdir: /opt/light-locker-settings-1.5.3
creates: /usr/local/bin/light-locker-settings

- name: make light-locker-settings
command: make
args:
chdir: /opt/light-locker-settings-1.5.3
creates: /usr/local/bin/light-locker-settings

- name: install light-locker-settings
command: make install
args:
chdir: /opt/light-locker-settings-1.5.3
creates: /usr/local/bin/light-locker-settings

+ 34
- 0
tasks/screensaver.yaml Прегледај датотеку

@@ -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
file:
src: gdmflexiserver-fake.sh
dest: /usr/local/bin/gdmflexiserver
mode: 0755

+ 0
- 2
tasks/xfce.yaml Прегледај датотеку

@@ -49,5 +49,3 @@
template:
src: xfwm4.xml.j2
dest: /etc/xdg/xfce4/xfconf/xfce-perchannel-xml/xfwm4.xml

- import_tasks: light-locker-settings.yaml

+ 24
- 0
templates/Xresources.xscreensaver.j2 Прегледај датотеку

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

xscreensaver.timeout: 0:15:00
xscreensaver.lockTimeout: 0:15:00
xscreensaver.passwdTimeout: 0:00:30

xscreensaver.dpmsQuickoffEnabled: True

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

Loading…
Откажи
Сачувај