From 5a54f92b3104f267ab205cd3893651f85c0ff328 Mon Sep 17 00:00:00 2001 From: mehbark Date: Tue, 15 Aug 2023 13:08:14 -0400 Subject: [PATCH] de stuff for xmonad --- configuration.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/configuration.nix b/configuration.nix index 1499f68..09b01bf 100644 --- a/configuration.nix +++ b/configuration.nix @@ -153,6 +153,21 @@ in enableContribAndExtras = true; } else {}; + services.xserver.displayManager.sessionCommands = if conf.wm == "xmonad" + then '' + xset -dpms + xset s blank + xset s 300 + ${pkgs.lightlocker}/bin/lightlocker --idle-hint & + '' else ""; + + systemd.targets.hybrid-sleep.enable = conf.wm == "xmonad"; + systemd.logind.extraConfig = if conf.wm == "xmonad" + then '' + IdleAction=hybrid-sleep + IdleActionSec=20s + '' else "" + # List services that you want to enable: # Enable the OpenSSH daemon.