A simple terminal based pomodoro/productivity timer written in Rust.
NOTE: The timer has currently only been tested on Mac and Linux, but might also work on Windows (please let me know if you tried it succesfully).
ignore
brew tap install on3iro/zentime
brew install zentime
ignore
cargo install zentime-rs
Coming soon
The default location for the configuration file is /home/<user>/.config/zentime/zentime.toml
.
To get an overview of available configuration options please have a look at the example configuration.
For an overview of all available configuration keys, check out the docs.
Note that each key (view
, timers
etc.) corresponds to the header of a toml table while
clicking on the type inside the docs shows you the available configuration fields.
Logs are being written to:
/tmp/zentime.d.err
- this captures any panics/tmp/zentime.d.out
- this captures error/warn/info etc. logsThe default log level is warn
.
You can configure the log level by running zentime with RUST_LOG=<level> zentime
.
Here's an overview of available log levels.
To display the current timer state inside the tmux status bar you could use zentime once
which will be queried by tmux on each status bar update.
Simply add the following snippet to your .tmux.conf
:
conf ignore
set -g status-left " #(zentime once) "
If you would like to add shortcuts (e.g. to toggle pause/play) from inside tmux you could add bindings like this:
conf ignore
bind t run-shell "zentime toggle-timer > /dev/null"
bind y run-shell "zentime skip > /dev/null"
Zentime is built in such a way, that it should be possible to build custom clients etc. to attach to the server. To do so one should use the modules provided by the library crate. More documentation/examples on how to use these, will follow soon.
NOTE: The API of the library crate is not yet stable and might change on minor version updates. As soon as this crate reaches 1.0.0 status, breaking changes will only ever happen on major versions.