@@ -67,4 +67,5 @@ | |||||
systemd: | systemd: | ||||
name: screensaver.service | name: screensaver.service | ||||
enabled: false | enabled: false | ||||
state: stopped | |||||
scope: user | scope: user |
@@ -9,6 +9,13 @@ | |||||
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 | |||||
- 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: | ||||
@@ -201,8 +201,8 @@ mode "session" { | |||||
bindsym s exec --no-startup-id {{system_suspend_command}}; mode "default"; {{on_focus_workspace}} | bindsym s exec --no-startup-id {{system_suspend_command}}; mode "default"; {{on_focus_workspace}} | ||||
bindsym l exec --no-startup-id {{lockscreen_lock_command}}; mode "default"; {{on_focus_workspace}} | bindsym l exec --no-startup-id {{lockscreen_lock_command}}; mode "default"; {{on_focus_workspace}} | ||||
bindcode 49 exec --no-startup-id {{lockscreen_lock_command}}; mode "default"; {{on_focus_workspace}} | bindcode 49 exec --no-startup-id {{lockscreen_lock_command}}; mode "default"; {{on_focus_workspace}} | ||||
bindsym e exec --no-startup-id {{session_enable_screensaver_command}}; mode "default"; {{on_focus_workspace}} | |||||
bindsym d exec --no-startup-id {{session_disable_screensaver_command}}; mode "default"; {{on_focus_workspace}} | |||||
bindsym e exec --no-startup-id systemctl --user start lockscreen.service; mode "default"; {{on_focus_workspace}} | |||||
bindsym d exec --no-startup-id systemctl --user stop lockscreen.service; mode "default"; {{on_focus_workspace}} | |||||
bindsym b exec --no-startup-id xsetroot -solid black; mode "default"; {{on_focus_workspace}} | bindsym b exec --no-startup-id xsetroot -solid black; mode "default"; {{on_focus_workspace}} | ||||
bindsym Shift+R exec --no-startup-id {{system_reboot_command}}; mode "default"; {{on_focus_workspace}} | bindsym Shift+R exec --no-startup-id {{system_reboot_command}}; mode "default"; {{on_focus_workspace}} | ||||
bindsym Shift+P exec --no-startup-id {{system_poweroff_command}}; mode "default"; {{on_focus_workspace}} | bindsym Shift+P exec --no-startup-id {{system_poweroff_command}}; mode "default"; {{on_focus_workspace}} | ||||
@@ -0,0 +1,13 @@ | |||||
{{ 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,5 @@ | |||||
{{ ansible_managed | comment }} | {{ ansible_managed | comment }} | ||||
XSECURELOCK_SAVER=%h/bin/screensaver | |||||
#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,9 +5,9 @@ Description=Screensaver | |||||
PartOf=graphical-session.target | PartOf=graphical-session.target | ||||
[Service] | [Service] | ||||
Type=simple | |||||
ExecStart=/usr/bin/xss-lock -l -- xsecurelock | |||||
Restart=always | |||||
Type=notify | |||||
ExecStart=xsecurelock -- systemd-notify --ready | |||||
NotifyAccess=all | |||||
EnvironmentFile=%h/.lockscreen.env | EnvironmentFile=%h/.lockscreen.env | ||||
[Install] | [Install] | ||||