|
|
|
[[profiles]]
|
|
|
|
|
|
|
|
# [[profiles.matching]]
|
|
|
|
# exe_path = "foo"
|
|
|
|
|
|
|
|
# matching = { cmdline = "foo", regex = true }
|
|
|
|
matching = { cmdline = "foo"}
|
|
|
|
|
|
|
|
|
|
|
|
[[profiles.commands]]
|
|
|
|
# lifetime = {not_seen = "3m"}
|
|
|
|
condition = {seen = "5s"}
|
|
|
|
|
|
|
|
# one off command
|
|
|
|
exec = ["sh", "-c", "notify-send 'foo seen'"]
|
|
|
|
|
|
|
|
# when exec_end is defined the schedule behaves like a toggle
|
|
|
|
# cmd is executed when exiting condition
|
|
|
|
exec_end = ["sh", "-c", "notify-send 'foo end'"]
|
|
|
|
|
|
|
|
run_once = true
|
|
|
|
|
|
|
|
[[profiles]]
|
|
|
|
matching = { cmdline = "^fo?", regex = true }
|
|
|
|
# regex = false
|
|
|
|
|
|
|
|
[[profiles.commands]]
|
|
|
|
condition = {seen = "5s"}
|
|
|
|
|
|
|
|
# one off command
|
|
|
|
exec = ["sh", "-c", "notify-send 'foo senn'"]
|
|
|
|
exec_end = ["sh", "-c", "notify-send 'foo end'"]
|