timer-cli

Crates.iotimer-cli
lib.rstimer-cli
version
sourcesrc
created_at2024-10-05 06:30:49.697505
updated_at2025-02-09 17:30:44.318174
descriptionSimple countdown terminal alarm
homepagehttps://github.com/pando85/timer
repositoryhttps://github.com/pando85/timer
max_upload_size
id1397434
Cargo.toml error:TOML parse error at line 18, column 1 | 18 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include`
size0
(pando85)

documentation

README


logo
Timer

demo

Build status Timer license

Simple count down terminal alarm.

Features

  • Parse multiple input options
  • Play sound when finished (Beep included!)
  • Send terminal bell
  • Big centered output
  • Repeat countdown infinitely

Installation

Cargo

cargo install timer-cli

Archlinux

yay -S timer-rs

Binaries

Binaries are made available each release for the Linux and MacOS operating systems.

You can download a prebuilt binary from our Releases.

curl -s https://api.github.com/repos/pando85/timer/releases/latest \
  | grep browser_download_url \
  | grep $(uname -m) \
  | grep linux \
  | cut -d '"' -f 4 \
  | xargs curl -L \
  | tar xvz
sudo mv timer /usr/local/bin

Beep

If you want to enable beep from your built-in case speaker you will need to run one of these kernel modules: pcspkr (recommended) or snd-pcsp.

In addition, to use beep as normal user read the PERMISSIONS.md file.

Terminal bell

If executed with -t, --terminal-bell option it will send a bell character. Same as:

echo -e '\a'

This is useful for visual bell. Remember that you have to enable it in your terminal configuration. Usage example:

timer -t -s 11:00
Commit count: 238

cargo fmt