Add opacity-rules to compton
This commit is contained in:
parent
96250b7ad3
commit
5bdebf5ab0
|
@ -29,6 +29,7 @@ let
|
|||
active-opacity = ${cfg.activeOpacity};
|
||||
inactive-opacity = ${cfg.inactiveOpacity};
|
||||
menu-opacity = ${cfg.menuOpacity};
|
||||
opacity-rule = ${toJSON cfg.opacityRule};
|
||||
|
||||
# other options
|
||||
backend = ${toJSON cfg.backend};
|
||||
|
@ -148,6 +149,19 @@ in {
|
|||
'';
|
||||
};
|
||||
|
||||
opacityRule = mkOption {
|
||||
type = types.listOf types.str;
|
||||
default = [];
|
||||
example = [
|
||||
"87:class_i ?= 'scratchpad'"
|
||||
"91:class_i ?= 'xterm'"
|
||||
];
|
||||
description = ''
|
||||
List of opacity rules.
|
||||
See <literal>compton(1)</literal> man page for more examples.
|
||||
'';
|
||||
};
|
||||
|
||||
backend = mkOption {
|
||||
type = types.str;
|
||||
default = "glx";
|
||||
|
|
Loading…
Reference in a new issue