From f487b527ec420b888c52df1c4f8c31439201edb7 Mon Sep 17 00:00:00 2001 From: Jonathan Ringer Date: Sat, 1 Feb 2020 11:18:29 -0800 Subject: [PATCH] compton: add inactiveDim option PR #1016 --- modules/services/compton.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/modules/services/compton.nix b/modules/services/compton.nix index c5b96af34..3a67c7cb5 100644 --- a/modules/services/compton.nix +++ b/modules/services/compton.nix @@ -34,6 +34,7 @@ let # opacity active-opacity = ${cfg.activeOpacity}; inactive-opacity = ${cfg.inactiveOpacity}; + inactive-dim = ${cfg.inactiveDim}; menu-opacity = ${cfg.menuOpacity}; opacity-rule = ${toJSON cfg.opacityRule}; @@ -178,6 +179,15 @@ in { ''; }; + inactiveDim = mkOption { + type = types.str; + default = "0.0"; + example = "0.2"; + description = '' + Dim inactive windows. + ''; + }; + inactiveOpacity = mkOption { type = types.str; default = "1.0";