de stuff for xmonad

This commit is contained in:
mehbark 2023-08-15 13:08:14 -04:00
parent 2fbc996ffc
commit 5a54f92b31

View file

@ -153,6 +153,21 @@ in
enableContribAndExtras = true; enableContribAndExtras = true;
} else {}; } 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: # List services that you want to enable:
# Enable the OpenSSH daemon. # Enable the OpenSSH daemon.