1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-24 06:31:02 +00:00

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;
};
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";
start =
''
${awesome}/bin/awesome ${makeSearchPath cfg.luaModules} &
${awesome}/bin/awesome ${lib.optionalString cfg.noArgb "--no-argb"} ${makeSearchPath cfg.luaModules} &
waitPID=$!
'';
};