about summary refs log tree commit diff
path: root/nixos/modules
diff options
context:
space:
mode:
authortilpner <till@hoeppner.ws>2018-06-13 19:47:26 +0200
committertilpner <till@hoeppner.ws>2018-06-13 19:47:26 +0200
commit903292a2d845a3d7eececfec364fb871f9ff2317 (patch)
treeda0b6727eb696313c28ac5bc9266a0fe20942d8c /nixos/modules
parent27e7143cf70a5586cffb49b9d2c9db304a4b5f4b (diff)
downloadnixlib-903292a2d845a3d7eececfec364fb871f9ff2317.tar
nixlib-903292a2d845a3d7eececfec364fb871f9ff2317.tar.gz
nixlib-903292a2d845a3d7eececfec364fb871f9ff2317.tar.bz2
nixlib-903292a2d845a3d7eececfec364fb871f9ff2317.tar.lz
nixlib-903292a2d845a3d7eececfec364fb871f9ff2317.tar.xz
nixlib-903292a2d845a3d7eececfec364fb871f9ff2317.tar.zst
nixlib-903292a2d845a3d7eececfec364fb871f9ff2317.zip
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).
Diffstat (limited to 'nixos/modules')
-rw-r--r--nixos/modules/services/x11/window-managers/awesome.nix7
1 files changed, 6 insertions, 1 deletions
diff --git a/nixos/modules/services/x11/window-managers/awesome.nix b/nixos/modules/services/x11/window-managers/awesome.nix
index 71eb02ec5954..089e9f769f0a 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=$!
           '';
       };