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}"; };
|
in { DISPLAY = ":${toString display}"; };
|
||||||
script = ''
|
script = ''
|
||||||
${pkgs.xlockmore}/bin/xlock -mode life1d -size 1 &
|
${pkgs.xlockmore}/bin/xlock -mode life1d -size 1 &
|
||||||
sleep 4
|
sleep 1
|
||||||
'';
|
'';
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
SyslogIdentifier = "screenlock";
|
SyslogIdentifier = "screenlock";
|
||||||
|
@ -22,6 +22,6 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
services.logind.lidSwitch = "suspend";
|
services.logind.lidSwitch = "ignore";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue