ソースを参照

functional screensaver

pull/1/head
コミット
f7b21437ff
5個のファイルの変更10行の追加23行の削除
  1. +6
    -6
      tasks/lockscreen.yaml
  2. +0
    -13
      templates/lockscreen/lockscreen-auto.service.j2
  3. +0
    -1
      templates/lockscreen/lockscreen.env.j2
  4. +4
    -3
      templates/lockscreen/lockscreen.service.j2
  5. +0
    -0
      templates/lockscreen/screensaver.sh.j2

+ 6
- 6
tasks/lockscreen.yaml ファイルの表示

@@ -5,18 +5,18 @@
src: lockscreen/lockscreen.env.j2
dest: ~/.lockscreen.env

- name: screensaver shell script
template:
src: lockscreen/screensaver.sh.j2
dest: ~/.screensaver.sh
mode: 0755

- name: lockscreen graphical-session service
template:
src: lockscreen/lockscreen.service.j2
dest: ~/.config/systemd/user/lockscreen.service
notify: systemd daemon-reload

- name: lockscreen-auto graphical-session service
template:
src: lockscreen/lockscreen-auto.service.j2
dest: ~/.config/systemd/user/lockscreen-auto.service
notify: systemd daemon-reload

- name: lockscreen graphical-session service enabled
systemd:
name: lockscreen.service


+ 0
- 13
templates/lockscreen/lockscreen-auto.service.j2 ファイルの表示

@@ -1,13 +0,0 @@
{{ ansible_managed | comment }}

[Unit]
Description=Screensaver
PartOf=graphical-session.target

[Service]
Type=simple
ExecStart=/usr/bin/xss-lock -l -- systemctl --user start lockscreen.service
Restart=always

[Install]
WantedBy=graphical-session.target

+ 0
- 1
templates/lockscreen/lockscreen.env.j2 ファイルの表示

@@ -1,5 +1,4 @@
{{ ansible_managed | comment }}

#XSECURELOCK_SAVER=$HOME/bin/screensaver
XSECURELOCK_AUTH_BACKGROUND_COLOR={{home_base_color_hue|hsv2rgb(66,47)}}
XSECURELOCK_SWITCH_USER_COMMAND=dm-tool switch-to-greeter

+ 4
- 3
templates/lockscreen/lockscreen.service.j2 ファイルの表示

@@ -5,10 +5,11 @@ Description=Screensaver
PartOf=graphical-session.target

[Service]
Type=notify
ExecStart=xsecurelock -- systemd-notify --ready
NotifyAccess=all
Type=simple
ExecStart=/usr/bin/xss-lock -l -- xsecurelock
EnvironmentFile=%h/.lockscreen.env
Environment="XSECURELOCK_SAVER=%h/.screensaver.sh"
Restart=always

[Install]
WantedBy=graphical-session.target

files/bin/screensaver → templates/lockscreen/screensaver.sh.j2 ファイルの表示