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).

tilpner 903292a2 27e7143c

Changed files
+6 -1
nixos
modules
services
x11
window-managers
+6 -1
nixos/modules/services/x11/window-managers/awesome.nix
···
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";
+
};
};
};
···
{ name = "awesome";
start =
''
-
${awesome}/bin/awesome ${makeSearchPath cfg.luaModules} &
+
${awesome}/bin/awesome ${lib.optionalString cfg.noArgb "--no-argb"} ${makeSearchPath cfg.luaModules} &
waitPID=$!
'';
};