compton: drop no-dock-blur option, add dock and dnd shadow

no-dock-blur doesn't exist in compton and was added by mistake.
This commit is contained in:
Will Dietz 2018-10-12 13:26:15 -05:00 committed by Nikita Uvarov
parent 05a98b6be0
commit 0cfd21cc15
No known key found for this signature in database
GPG key ID: F7A5FB3A7C10EF96

View file

@ -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";