diff options
Diffstat (limited to 'machines/profpatsch/shiki.nix')
-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 |