nixos/awesome: Add noArgb option

Add option to disable client transparency support in awesome,
which greatly improves performance in my setup
(and presumably will in some others).
This commit is contained in:
tilpner 2018-06-13 19:47:26 +02:00
parent 27e7143cf7
commit 903292a2d8
No known key found for this signature in database
GPG Key ID: 6A13327225BE51F6

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=$!
''; '';
}; };