diff --git a/modules/services/compton.nix b/modules/services/compton.nix index c282ba47..f7a794e4 100644 --- a/modules/services/compton.nix +++ b/modules/services/compton.nix @@ -24,13 +24,14 @@ let shadow-offset-y = ${toString (elemAt cfg.shadowOffsets 1)}; shadow-opacity = ${cfg.shadowOpacity}; shadow-exclude = ${toJSON cfg.shadowExclude}; + no-dock-shadow = ${toJSON cfg.noDockShadow}; + no-dnd-shadow = ${toJSON cfg.noDNDShadow}; '' + optionalString cfg.blur '' # blur blur-background = true; blur-background-exclude = ${toJSON cfg.blurExclude}; - no-dock-blur = ${toJSON cfg.noDockBlur}; '' + '' # opacity @@ -58,14 +59,6 @@ in { ''; }; - noDockBlur = mkOption { - type = types.bool; - default = false; - description = '' - Avoid blur on docks. - ''; - }; - blurExclude = mkOption { type = types.listOf types.str; default = []; @@ -174,6 +167,22 @@ in { ''; }; + noDockShadow = mkOption { + type = types.bool; + default = true; + description = '' + Avoid shadow on docks. + ''; + }; + + noDNDShadow = mkOption { + type = types.bool; + default = true; + description = '' + Avoid shadow on drag-and-drop windows. + ''; + }; + activeOpacity = mkOption { type = types.str; default = "1.0";