Merge pull request #15840 from anderspapitto/pulse-jack
pulseaudio service: set DISPLAY
This commit is contained in:
commit
8f43f111c0
@ -161,6 +161,7 @@ in {
|
|||||||
ExecStart = "${getBin cfg.package}/bin/pulseaudio --daemonize=no";
|
ExecStart = "${getBin cfg.package}/bin/pulseaudio --daemonize=no";
|
||||||
Restart = "on-failure";
|
Restart = "on-failure";
|
||||||
};
|
};
|
||||||
|
environment = { DISPLAY = ":${toString config.services.xserver.display}"; };
|
||||||
};
|
};
|
||||||
|
|
||||||
sockets.pulseaudio = {
|
sockets.pulseaudio = {
|
||||||
|
@ -126,7 +126,7 @@ in
|
|||||||
|
|
||||||
environment = {
|
environment = {
|
||||||
LD_LIBRARY_PATH = ''/run/opengl-driver/lib:/run/opengl-driver-32/lib'';
|
LD_LIBRARY_PATH = ''/run/opengl-driver/lib:/run/opengl-driver-32/lib'';
|
||||||
DISPLAY = ":0";
|
DISPLAY = ":${toString config.services.xserver.display}";
|
||||||
GPU_MAX_ALLOC_PERCENT = "100";
|
GPU_MAX_ALLOC_PERCENT = "100";
|
||||||
GPU_USE_SYNC_OBJECTS = "1";
|
GPU_USE_SYNC_OBJECTS = "1";
|
||||||
};
|
};
|
||||||
|
@ -108,7 +108,7 @@ in {
|
|||||||
RestartSec = 3;
|
RestartSec = 3;
|
||||||
Restart = "always";
|
Restart = "always";
|
||||||
};
|
};
|
||||||
environment = { DISPLAY = ":0"; };
|
environment = { DISPLAY = ":${toString config.services.xserver.display}"; };
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -39,12 +39,6 @@ in {
|
|||||||
default = 1;
|
default = 1;
|
||||||
};
|
};
|
||||||
|
|
||||||
displayName = mkOption {
|
|
||||||
description = "Name of the X11 display";
|
|
||||||
type = types.str;
|
|
||||||
default = ":0";
|
|
||||||
};
|
|
||||||
|
|
||||||
excluded = mkOption {
|
excluded = mkOption {
|
||||||
description = "Names of windows where unclutter should not apply";
|
description = "Names of windows where unclutter should not apply";
|
||||||
type = types.listOf types.str;
|
type = types.listOf types.str;
|
||||||
@ -67,7 +61,7 @@ in {
|
|||||||
serviceConfig.ExecStart = ''
|
serviceConfig.ExecStart = ''
|
||||||
${cfg.package}/bin/unclutter \
|
${cfg.package}/bin/unclutter \
|
||||||
-idle ${toString cfg.timeout} \
|
-idle ${toString cfg.timeout} \
|
||||||
-display ${cfg.displayName} \
|
-display :${toString config.services.xserver.display} \
|
||||||
-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…
x
Reference in New Issue
Block a user