i3status_rs::blocks

Module tea_timer

source
Expand description

Timer

§Configuration

KeyValuesDefault
formatA string to customise the output of this block. See below for available placeholders." $icon {$time.duration(hms:true) |}"
incrementThe numbers of seconds to add each time the block is clicked.30
done_cmdA command to run in sh when timer finishes.None
PlaceholderValueTypeUnit
iconA static iconIcon-
timeThe time remaining on the timerDuration-
hours DEPRECATEDThe hours remaining on the timerTexth
minutes DEPRECATEDThe minutes remaining on the timerTextmn
seconds DEPRECATEDThe seconds remaining on the timerTexts

time, hours, minutes, and seconds are unset when the timer is inactive.

hours, minutes, and seconds have been deprecated in favor of time.

ActionDefault button
incrementLeft / Wheel Up
decrementWheel Down
resetRight

§Example

[[block]]
block = "tea_timer"
format = " $icon {$minutes:$seconds |}"
done_cmd = "notify-send 'Timer Finished'"

§Icons Used

  • tea

Structs§

Functions§