Skip to content

yoarch/timer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

timer

Simple CLI timer

A simple terminal timer to set one or regular timers, with customizable audio notifications.

Installation

yay -a timer
or
yaourt -a timer

Usage

timer [TOTAL_TIME] [TIME_MODE] [TIMERS_NUMBER] [AUDIO_PATH] [DISPLAY_MODE]
options:
    TOTAL_TIME         Must be an integer such as 42
    TIME_MODE          "s" for seconds (default unit), "m" for minutes and "h" for hours
    TIMERS_NUMBER      Number of timers. "1", "1000", "infinity" or "inf" for no limit. 1 by default
    AUDIO_INFO         Either "no_audio" to turn the audio off or an audio file path to play another audio than the default duck one provided
    -h, --help         Show this help message and exit

Examples

For help:

timer -h
or
timer --help

One timer in 30 seconds

timer 30
or
timer 30s
or
timer 30 s
or
timer 30 s 1

No limit timers every 2 hours with no audio

timer 2h infinity no_audio
or
timer 2 h inf no_audio

5 timers every 50 minutes with specifying another timer audio song

timer 50m 5 ~/audio/duck_song.mp3