mirror of
https://github.com/nix-community/home-manager
synced 2024-11-23 19:49:45 +01:00
Add opacity-rules to compton
This commit is contained in:
parent
96250b7ad3
commit
5bdebf5ab0
1 changed files with 14 additions and 0 deletions
|
@ -29,6 +29,7 @@ let
|
||||||
active-opacity = ${cfg.activeOpacity};
|
active-opacity = ${cfg.activeOpacity};
|
||||||
inactive-opacity = ${cfg.inactiveOpacity};
|
inactive-opacity = ${cfg.inactiveOpacity};
|
||||||
menu-opacity = ${cfg.menuOpacity};
|
menu-opacity = ${cfg.menuOpacity};
|
||||||
|
opacity-rule = ${toJSON cfg.opacityRule};
|
||||||
|
|
||||||
# other options
|
# other options
|
||||||
backend = ${toJSON cfg.backend};
|
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 {
|
backend = mkOption {
|
||||||
type = types.str;
|
type = types.str;
|
||||||
default = "glx";
|
default = "glx";
|
||||||
|
|
Loading…
Reference in a new issue