diff options
author | Malfurious <m@lfurio.us> | 2023-06-01 16:22:33 -0400 |
---|---|---|
committer | Malfurious <m@lfurio.us> | 2023-06-01 21:26:22 -0400 |
commit | c6114c6dad641ea7e1dec230945023864fe1f6e7 (patch) | |
tree | 9358b8cf32bad0a7cd02b0eae59b337b1cfbb7a1 /config.def.h | |
parent | 80ba53531670f06b82a6592e878ed7e7a802b4e6 (diff) | |
download | slock-c6114c6dad641ea7e1dec230945023864fe1f6e7.tar.gz slock-c6114c6dad641ea7e1dec230945023864fe1f6e7.zip |
patch: dpms
This patch interacts with the Display Power Management Signaling and
automatically turns off the monitor after a configurable time. The
monitor is reactivated by a keystroke or moving the mouse.
The time until the monitor is disabled is configurable as monitortime in
the config.h file in seconds.
This is a modified version of the patch from suckless.org which permits
normal timeout values of zero.
Diffstat (limited to 'config.def.h')
-rw-r--r-- | config.def.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/config.def.h b/config.def.h index 3639e91..3420af9 100644 --- a/config.def.h +++ b/config.def.h @@ -14,3 +14,6 @@ static const int failonclear = 1; /* allow control key to trigger fail on clear */ static const int controlkeyclear = 1; + +/* time in seconds before the monitor shuts down */ +static const int monitortime = 7; |