tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
unclutter: respect xserver.display variable
Anders Papitto
9 years ago
49879fa9
54fa0cfe
+1
-7
1 changed file
expand all
collapse all
unified
split
nixos
modules
services
x11
unclutter.nix
+1
-7
nixos/modules/services/x11/unclutter.nix
···
39
39
default = 1;
40
40
};
41
41
42
42
-
displayName = mkOption {
43
43
-
description = "Name of the X11 display";
44
44
-
type = types.str;
45
45
-
default = ":0";
46
46
-
};
47
47
-
48
42
excluded = mkOption {
49
43
description = "Names of windows where unclutter should not apply";
50
44
type = types.listOf types.str;
···
67
61
serviceConfig.ExecStart = ''
68
62
${cfg.package}/bin/unclutter \
69
63
-idle ${toString cfg.timeout} \
70
70
-
-display ${cfg.displayName} \
64
64
+
-display :${toString config.services.xserver.display} \
71
65
-jitter ${toString (cfg.threeshold - 1)} \
72
66
${optionalString cfg.keystroke "-keystroke"} \
73
67
${concatMapStrings (x: " -"+x) cfg.extraOptions} \