update readme, example

master
blob42 1 month ago
parent dece876102
commit ff2bbd8456

@ -109,8 +109,8 @@ The command for "baz" will be run only once per process detection.
## Troubleshooting ## Troubleshooting
You can enable more verbose output using the `-d` flag or the `RUST_LOG=debug` You can enable more verbose output using the `-d` flag or setting the environment
environment variable. variable to `debug` or `trace`.
## Contributing ## Contributing

@ -21,12 +21,12 @@ exec_end = ["sh", "-c", "notify-send 'foo end'"]
run_once = true run_once = true
[[profiles]] [[profiles]]
matching = { cmdline = "^foo?", regex = true } matching = { cmdline = "^bar.*", regex = true }
# regex = false # regex = false
[[profiles.commands]] [[profiles.commands]]
condition = {seen = "5s"} condition = {seen = "5s"}
# one off command # one off command
exec = ["sh", "-c", "notify-send 'foo seen'"] exec = ["sh", "-c", "notify-send 'bar seen'"]
exec_end = ["sh", "-c", "notify-send 'foo end'"] exec_end = ["sh", "-c", "notify-send 'bar end'"]

Loading…
Cancel
Save