# A preset is a set of configuration identified by a name.
[]
# TCP configuration, used by server binders and by clients.
# Requires the cargo feature "tcp".
= "localhost"
= 1234
# A cycle is a step in the timer lifetime, represented by a name and a
# duration. You can either define custom cycles:
= [
{ = "Work", = 5 },
{ = "Rest", = 3 },
]
# Predefined cycles can also be used:
# preset = "pomodoro" | "52/17"
# Force the timer to stop after the given amount of loops:
# cycles-count = 5
# Customize the timer precision. Available options: second, minute, hour.
# timer-precision = "minute"
# A hook can be either a shell command or a system notification. Hook
# names follow the format "on-{name}-{event}", where "name" is the
# kebab-case version of the cycle name, and "event" the type of event:
# begin, running, set, pause, resume, end.
= "Comodoro"
= "Work started!"
# hooks.on-work-begin.cmd = "notify-send Comodoro 'Work started!'"