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
You can enable more verbose output using the `-d` flag or the `RUST_LOG=debug`
environment variable.
You can enable more verbose output using the `-d` flag or setting the environment
variable to `debug` or `trace`.
## Contributing

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

Loading…
Cancel
Save