de stuff for xmonad
This commit is contained in:
parent
2fbc996ffc
commit
5a54f92b31
1 changed files with 15 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue