conf: support ! to negate the match

So that you can do "application.name" = "!pw-cat" to match anything
that is not pw-cat and "application.name" = "!~pw-cat$".

Fixes #3460
This commit is contained in:
Wim Taymans 2023-08-25 11:39:28 +02:00
parent 0bfc02581f
commit 8dd294bf44
5 changed files with 21 additions and 14 deletions

View file

@ -95,7 +95,7 @@ jack.properties = {
jack.rules = [
{ matches = [
{
# all keys must match the value. ~ starts regex.
# all keys must match the value. ! negates. ~ starts regex.
#client.name = "Carla"
#application.process.binary = "jack_simple_client"
#application.name = "~jack_simple_client.*"

View file

@ -116,7 +116,7 @@ pulse.rules = [
{
matches = [
{
# all keys must match the value. ~ starts regex.
# all keys must match the value. ! negates. ~ starts regex.
#client.name = "Firefox"
#application.process.binary = "teams"
#application.name = "~speech-dispatcher.*"