unclutter: respect xserver.display variable

Changed files
+1 -7
nixos
modules
services
+1 -7
nixos/modules/services/x11/unclutter.nix
···
default = 1;
};
-
displayName = mkOption {
-
description = "Name of the X11 display";
-
type = types.str;
-
default = ":0";
-
};
-
excluded = mkOption {
description = "Names of windows where unclutter should not apply";
type = types.listOf types.str;
···
serviceConfig.ExecStart = ''
${cfg.package}/bin/unclutter \
-idle ${toString cfg.timeout} \
-
-display ${cfg.displayName} \
+
-display :${toString config.services.xserver.display} \
-jitter ${toString (cfg.threeshold - 1)} \
${optionalString cfg.keystroke "-keystroke"} \
${concatMapStrings (x: " -"+x) cfg.extraOptions} \