unclutter: Fix default value of $DISPLAY
This commit is contained in:
parent
a77571399d
commit
c91c3209f3
|
@ -60,7 +60,10 @@ in {
|
||||||
serviceConfig.ExecStart = ''
|
serviceConfig.ExecStart = ''
|
||||||
${cfg.package}/bin/unclutter \
|
${cfg.package}/bin/unclutter \
|
||||||
-idle ${toString cfg.timeout} \
|
-idle ${toString cfg.timeout} \
|
||||||
-display :${toString config.services.xserver.display} \
|
-display :${toString (
|
||||||
|
let display = config.services.xserver.display;
|
||||||
|
in if display != null then display else 0
|
||||||
|
)} \
|
||||||
-jitter ${toString (cfg.threeshold - 1)} \
|
-jitter ${toString (cfg.threeshold - 1)} \
|
||||||
${optionalString cfg.keystroke "-keystroke"} \
|
${optionalString cfg.keystroke "-keystroke"} \
|
||||||
${concatMapStrings (x: " -"+x) cfg.extraOptions} \
|
${concatMapStrings (x: " -"+x) cfg.extraOptions} \
|
||||||
|
|
Loading…
Reference in New Issue