suspend: ignore when closing laptop

This commit is contained in:
Ingolf Wagner 2020-01-17 00:20:23 +13:00
parent 1df0de7563
commit f34ba949ca
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B

View file

@ -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";
}