compton: minor reformatting

This commit is contained in:
Robert Helgesson 2018-11-15 00:16:56 +01:00
parent 9a0f388f66
commit abfc37076a
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

View file

@ -284,29 +284,28 @@ in {
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {
home.packages = [ cfg.package ]; home.packages = [ cfg.package ];
systemd.user.services.compton = { systemd.user.services.compton = {
Unit = { Unit = {
Description = "Compton X11 compositor"; Description = "Compton X11 compositor";
After = [ "graphical-session-pre.target" ]; After = [ "graphical-session-pre.target" ];
PartOf = [ "graphical-session.target" ]; PartOf = [ "graphical-session.target" ];
}; };
Install = { Install = {
WantedBy = [ "graphical-session.target" ]; WantedBy = [ "graphical-session.target" ];
}; };
Service = { Service = {
ExecStart = "${cfg.package}/bin/compton --config ${configFile}"; ExecStart = "${cfg.package}/bin/compton --config ${configFile}";
Restart = "always"; Restart = "always";
RestartSec = 3; RestartSec = 3;
} }
// optionalAttrs (cfg.backend == "glx") { // optionalAttrs (cfg.backend == "glx") {
# Temporarily fixes corrupt colours with Mesa 18. # Temporarily fixes corrupt colours with Mesa 18.
Environment = [ "allow_rgb10_configs=false" ]; Environment = [ "allow_rgb10_configs=false" ];
}; };
}; };
}; };
} }