Merge pull request #41938 from tilpner/awesome-no-argb

nixos/awesome: Add noArgb option
This commit is contained in:
Jörg Thalheim 2018-06-13 22:31:45 +01:00 committed by GitHub
commit a89586a885
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,6 +37,11 @@ in
apply = pkg: if pkg == null then pkgs.awesome else pkg; apply = pkg: if pkg == null then pkgs.awesome else pkg;
}; };
noArgb = mkOption {
default = false;
type = types.bool;
description = "Disable client transparency support, which can be greatly detrimental to performance in some setups";
};
}; };
}; };
@ -50,7 +55,7 @@ in
{ name = "awesome"; { name = "awesome";
start = start =
'' ''
${awesome}/bin/awesome ${makeSearchPath cfg.luaModules} & ${awesome}/bin/awesome ${lib.optionalString cfg.noArgb "--no-argb"} ${makeSearchPath cfg.luaModules} &
waitPID=$! waitPID=$!
''; '';
}; };