Expand description
Timer
§Configuration
Key | Values | Default |
---|---|---|
format | A string to customise the output of this block. See below for available placeholders. | " $icon {$time.duration(hms:true) |}" |
increment | The numbers of seconds to add each time the block is clicked. | 30 |
done_cmd | A command to run in sh when timer finishes. | None |
Placeholder | Value | Type | Unit |
---|---|---|---|
icon | A static icon | Icon | - |
time | The time remaining on the timer | Duration | - |
hours DEPRECATED | The hours remaining on the timer | Text | h |
minutes DEPRECATED | The minutes remaining on the timer | Text | mn |
seconds DEPRECATED | The seconds remaining on the timer | Text | s |
time
, hours
, minutes
, and seconds
are unset when the timer is inactive.
hours
, minutes
, and seconds
have been deprecated in favor of time
.
Action | Default button |
---|---|
increment | Left / Wheel Up |
decrement | Wheel Down |
reset | Right |
§Example
[[block]]
block = "tea_timer"
format = " $icon {$minutes:$seconds |}"
done_cmd = "notify-send 'Timer Finished'"
§Icons Used
tea