1
0
mirror of https://github.com/nix-community/home-manager synced 2024-06-29 01:48:31 +02:00

Add opacity-rules to compton

This commit is contained in:
Anton Plotnikov 2018-04-15 05:06:44 +03:00 committed by Nikita Uvarov
parent 96250b7ad3
commit 5bdebf5ab0
No known key found for this signature in database
GPG Key ID: F7A5FB3A7C10EF96

View File

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