From 985d6ad6326352506f1f71d27de9fd3c637da789 Mon Sep 17 00:00:00 2001 From: Profpatsch Date: Fri, 1 Jan 2021 12:36:38 +0100 Subject: machines/shiki: turn off screen after 5 seconds instead of 2 --- machines/profpatsch/shiki.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'machines/profpatsch/shiki.nix') 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 -- cgit 1.4.1