diff options
author | Profpatsch <mail@profpatsch.de> | 2021-01-01 12:36:38 +0100 |
---|---|---|
committer | Profpatsch <mail@profpatsch.de> | 2021-01-01 12:36:38 +0100 |
commit | 985d6ad6326352506f1f71d27de9fd3c637da789 (patch) | |
tree | 084acc2748a14965d100aa917b58c340d8d6a849 | |
parent | b5015b5865d8e8f8b64f99746a571b708e9b776f (diff) |
machines/shiki: turn off screen after 5 seconds instead of 2
-rw-r--r-- | machines/profpatsch/shiki.nix | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/machines/profpatsch/shiki.nix b/machines/profpatsch/shiki.nix index 9175ec23..278fa3d0 100644 --- a/machines/profpatsch/shiki.nix +++ b/machines/profpatsch/shiki.nix @@ -7,10 +7,12 @@ let lock-screen = pkgs.writers.writeDashBin "lock-screen" '' set -e revert() { + # never turn off the screen (disable dpms) ${pkgs.xorg.xset}/bin/xset dpms 0 0 0 } trap revert HUP INT TERM EXIT - ${pkgs.xorg.xset}/bin/xset +dpms dpms 2 2 2 + # turn off the screen after 5 seconds of inactivity + ${pkgs.xorg.xset}/bin/xset +dpms dpms 5 5 5 ${pkgs.i3lock}/bin/i3lock \ --nofork \ --color=000000 |