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