From 903292a2d845a3d7eececfec364fb871f9ff2317 Mon Sep 17 00:00:00 2001 From: tilpner Date: Wed, 13 Jun 2018 19:47:26 +0200 Subject: [PATCH] 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). --- nixos/modules/services/x11/window-managers/awesome.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/nixos/modules/services/x11/window-managers/awesome.nix b/nixos/modules/services/x11/window-managers/awesome.nix index 71eb02ec595..089e9f769f0 100644 --- a/nixos/modules/services/x11/window-managers/awesome.nix +++ b/nixos/modules/services/x11/window-managers/awesome.nix @@ -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=$! ''; };