l sreenlock: get DISPLAY from xserver.display

This commit is contained in:
lassulus 2017-12-03 23:13:54 +01:00
parent aab2624a60
commit 4c6a578673

View File

@ -23,7 +23,7 @@ let
before = [ "sleep.target" ];
wantedBy = [ "sleep.target" ];
environment = {
DISPLAY = ":0";
DISPLAY = ":${toString config.services.xserver.display}";
};
serviceConfig = {
SyslogIdentifier = "screenlock";