Skip to content

Commit

Permalink
unclutter: Fix default value of $DISPLAY
Browse files Browse the repository at this point in the history
  • Loading branch information
pbogdan committed Apr 3, 2017
1 parent a775713 commit c91c320
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion nixos/modules/services/x11/unclutter.nix
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,10 @@ in {
serviceConfig.ExecStart = ''
${cfg.package}/bin/unclutter \
-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)} \
${optionalString cfg.keystroke "-keystroke"} \
${concatMapStrings (x: " -"+x) cfg.extraOptions} \
Expand Down

0 comments on commit c91c320

Please sign in to comment.