您最多选择25个主题
主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
此仓库已存档。您可以查看文件和克隆,但不能推送或创建工单/合并请求。
|
- #!/bin/sh
-
- # https://www.reddit.com/r/i3wm/comments/6gznzp/lock_screensaver_and_power_saving_how_to_trigger/
-
- xset s on
- xset +dpms
-
- # xset s <n1> <n2>
- # n1: is the time it takes to launch the first signal that the screen will be
- # shutdown. Here we generally dim the screen a bit.
- # n2: is the time after n1 that we launch the second signal.
- # Here we lock the screen.
- # With n1 = 60 and n2 = 30 the screen will be dimmed 60 seconds after the last
- # time pc was not idle and 30 seconds later (90 seconds from last non-idle
- # state) the screen will be locked.
- xset s {{ screensaver_sleeptime | int * 60 }} {{ screensaver_locktime | int * 60 }}
-
- # xset dpms <n>
- # n: is the time from last non-idle state after which the screen will be shutdown.
- xset dpms {{ screensaver_sleeptime | int * 60 }}
|