瀏覽代碼

lockscreen screensaver and dpms timeout

pull/1/head
父節點
當前提交
5265531ea1
共有 2 個文件被更改,包括 3 次插入2 次删除
  1. +2
    -2
      templates/lockscreen/lockscreen.env.j2
  2. +1
    -0
      templates/lockscreen/lockscreen.service.j2

+ 2
- 2
templates/lockscreen/lockscreen.env.j2 查看文件

@@ -1,6 +1,6 @@
{{ 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_SWITCH_USER_COMMAND=dm-tool switch-to-greeter
XSECURELOCK_AUTH_TIMEOUT=5
XSECURELOCK_AUTH_TIMEOUT=30

+ 1
- 0
templates/lockscreen/lockscreen.service.j2 查看文件

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

[Install]
WantedBy=graphical-session.target