@@ -5,18 +5,18 @@ | |||||
src: lockscreen/lockscreen.env.j2 | src: lockscreen/lockscreen.env.j2 | ||||
dest: ~/.lockscreen.env | dest: ~/.lockscreen.env | ||||
- name: screensaver shell script | |||||
template: | |||||
src: lockscreen/screensaver.sh.j2 | |||||
dest: ~/.screensaver.sh | |||||
mode: 0755 | |||||
- name: lockscreen graphical-session service | - name: lockscreen graphical-session service | ||||
template: | template: | ||||
src: lockscreen/lockscreen.service.j2 | src: lockscreen/lockscreen.service.j2 | ||||
dest: ~/.config/systemd/user/lockscreen.service | dest: ~/.config/systemd/user/lockscreen.service | ||||
notify: systemd daemon-reload | 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 | - name: lockscreen graphical-session service enabled | ||||
systemd: | systemd: | ||||
name: lockscreen.service | name: lockscreen.service | ||||
@@ -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 |
@@ -1,5 +1,4 @@ | |||||
{{ ansible_managed | comment }} | {{ ansible_managed | comment }} | ||||
#XSECURELOCK_SAVER=$HOME/bin/screensaver | |||||
XSECURELOCK_AUTH_BACKGROUND_COLOR={{home_base_color_hue|hsv2rgb(66,47)}} | XSECURELOCK_AUTH_BACKGROUND_COLOR={{home_base_color_hue|hsv2rgb(66,47)}} | ||||
XSECURELOCK_SWITCH_USER_COMMAND=dm-tool switch-to-greeter | XSECURELOCK_SWITCH_USER_COMMAND=dm-tool switch-to-greeter |
@@ -5,10 +5,11 @@ Description=Screensaver | |||||
PartOf=graphical-session.target | PartOf=graphical-session.target | ||||
[Service] | [Service] | ||||
Type=notify | |||||
ExecStart=xsecurelock -- systemd-notify --ready | |||||
NotifyAccess=all | |||||
Type=simple | |||||
ExecStart=/usr/bin/xss-lock -l -- xsecurelock | |||||
EnvironmentFile=%h/.lockscreen.env | EnvironmentFile=%h/.lockscreen.env | ||||
Environment="XSECURELOCK_SAVER=%h/.screensaver.sh" | |||||
Restart=always | |||||
[Install] | [Install] | ||||
WantedBy=graphical-session.target | WantedBy=graphical-session.target |