From 03be9636ade3248a6304c13eb02902ce9a288fbd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kier=C3=A1n=20Meinhardt?= Date: Mon, 18 Jan 2021 18:32:16 +0100 Subject: [PATCH] fix: disable dpms and blanking --- configs/i3.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/configs/i3.nix b/configs/i3.nix index 72e1b38..51c9232 100644 --- a/configs/i3.nix +++ b/configs/i3.nix @@ -72,6 +72,21 @@ in { }; }; + services.xserver = { + monitorSection = ''Option "DPMS" "false"''; + serverFlagsSection = '' + Option "BlankTime" "0" + Option "StandbyTime" "0" + Option "SuspendTime" "0" + Option "OffTime" "0" + ''; + extraConfig = '' + Section "Extensions" + Option "DPMS" "Disable" + EndSection + ''; + }; + home-manager.users.me.xsession.windowManager.i3 = { enable = true; config = rec {