19 releases

0.7.3 May 9, 2024
0.7.0 Mar 30, 2024
0.6.0 Sep 22, 2023
0.5.1 Oct 27, 2022
0.3.0 Dec 28, 2021

#94 in Audio

Download history 110/week @ 2024-02-19 37/week @ 2024-02-26 6/week @ 2024-03-04 2/week @ 2024-03-11 7/week @ 2024-03-18 113/week @ 2024-03-25 40/week @ 2024-04-01 142/week @ 2024-04-08 321/week @ 2024-05-06 9/week @ 2024-05-13

330 downloads per month

Custom license

41KB
785 lines


logo
Timer

demo

Build status Timer license

Simple count down terminal alarm.

Features

  • Multiple input options
  • Play sound when finished (Beep included!)
  • Send terminal bell
  • Big centered output

Installation

Cargo

cargo install timer_core

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

Dependencies

~8–40MB
~633K SLoC