timer-rs
Is a command line based module intended to be used in status bars.
Basic Usage
- Start timer-rs in a terminal
- run "echo '[seconds]' /tmp/timer-rs_input" to second timer-rs a signal
- timer-rs will display a bar on each newline which concludes after [seconds]
This inferface is likely to change.
i3status-rust block
Use as an[[block]]
block = "custom"
format = " $text "
command = " timer-rs "
persistent = true
[[block.click]]
button = "left"
cmd = "echo '300' > /tmp/timer-rs_input"
[[block.click]]
button = "right"
cmd = "echo '900' > /tmp/timer-rs_input"
Timer-rs can't output JSON currently. So icons need to be placed directly into the format value. Like so:
format = " <icon> $text "
I use this nerdfont icon
.
Installation
Build from source using cargo.
$ git clone --branch main https://github.com/chellipse/timer-rs
$ cd timer-rs
$ cargo install --path .
Make sure ~/.cargo/bin is in your PATH.