Browse Source

lockscreen screensaver and dpms timeout

pull/1/head
parent
commit
5265531ea1
2 changed files with 3 additions and 2 deletions
  1. +2
    -2
      templates/lockscreen/lockscreen.env.j2
  2. +1
    -0
      templates/lockscreen/lockscreen.service.j2

+ 2
- 2
templates/lockscreen/lockscreen.env.j2 View File

@@ -1,6 +1,6 @@
{{ ansible_managed | comment }} {{ ansible_managed | comment }}


#XSECURELOCK_SAVER=$HOME/.screensaver.sh
XSECURELOCK_SAVER={{ansible_user_dir}}/.screensaver.sh
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
XSECURELOCK_AUTH_TIMEOUT=5
XSECURELOCK_AUTH_TIMEOUT=30

+ 1
- 0
templates/lockscreen/lockscreen.service.j2 View File

@@ -11,6 +11,7 @@ ExecStartPost=xset dpms $XSECURELOCK_AUTH_TIMEOUT $XSECURELOCK_AUTH_TIMEOUT $XSE
NotifyAccess=all NotifyAccess=all
EnvironmentFile=%h/.lockscreen.env EnvironmentFile=%h/.lockscreen.env
ExecStopPost=xset dpms {{ display_sleeptime | int }} {{ display_sleeptime | int }} {{ display_sleeptime | int }} ExecStopPost=xset dpms {{ display_sleeptime | int }} {{ display_sleeptime | int }} {{ display_sleeptime | int }}
ExecStopPost=xset dpms force on


[Install] [Install]
WantedBy=graphical-session.target WantedBy=graphical-session.target