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,16 +12,16 @@
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";
# Type = "simple"; #Type = "simple";
Type = "forking"; Type = "forking";
User = config.users.users.mainUser.name; User = config.users.users.mainUser.name;
}; };
}; };
services.logind.lidSwitch = "suspend"; services.logind.lidSwitch = "ignore";
} }