suspend: ignore when closing laptop
This commit is contained in:
parent
1df0de7563
commit
f34ba949ca
1 changed files with 3 additions and 3 deletions
|
@ -12,16 +12,16 @@
|
|||
in { DISPLAY = ":${toString display}"; };
|
||||
script = ''
|
||||
${pkgs.xlockmore}/bin/xlock -mode life1d -size 1 &
|
||||
sleep 4
|
||||
sleep 1
|
||||
'';
|
||||
serviceConfig = {
|
||||
SyslogIdentifier = "screenlock";
|
||||
# Type = "simple";
|
||||
#Type = "simple";
|
||||
Type = "forking";
|
||||
User = config.users.users.mainUser.name;
|
||||
};
|
||||
};
|
||||
|
||||
services.logind.lidSwitch = "suspend";
|
||||
services.logind.lidSwitch = "ignore";
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue