You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
620 B
TOML
31 lines
620 B
TOML
[[profiles]]
|
|
|
|
# [[profiles.matching]]
|
|
# exe_path = "foo"
|
|
|
|
matching = { exe_path = "foo" }
|
|
|
|
|
|
[[profiles.commands]]
|
|
# lifetime = {not_seen = "3m"}
|
|
condition = {not_seen = "5s"}
|
|
|
|
# one off command
|
|
exec = ["sh", "-c", "notify-send bar"]
|
|
|
|
# when exec_end is defined the schedule behaves like a toggle
|
|
exec_end = ["sh", "-c", "notify-send 'bar end'"]
|
|
|
|
[[profiles]]
|
|
# pattern = "foo"
|
|
# pattern_in = "cmdline"
|
|
matching = { cmdline = "^fo?", regex = true }
|
|
# regex = false
|
|
|
|
[[profiles.commands]]
|
|
condition = {seen = "5s"}
|
|
|
|
# one off command
|
|
exec = ["sh", "-c", "notify-send foo"]
|
|
exec_end = ["sh", "-c", "notify-send 'foo end'"]
|