• Stars
    star
    290
  • Rank 138,190 (Top 3 %)
  • Language
    Go
  • License
    MIT License
  • Created about 2 years ago
  • Updated 11 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A `sleep` with progress

Made with VHS

timer

A sleep with progress.


Timer is a small CLI, similar to the sleep everyone already knows and love, with a couple of extra features:

  • a progress bar indicating the progression of said timer
  • a timer showing how much time is left
  • named timers

Usage

timer <duration>
timer -n <name> <duration>
man timer
timer --help

It is possible to pass a time unit for <duration>.

Valid time units are "ns", "us" (or "ยตs"), "ms", "s", "m", "h". If no unit is passed, it defaults to seconds ("s").

If you want to show the start time in 24-hour format, use --format 24h. For example:

timer 5s --format 24h -n Demo

Currently, the two formats supported by the --format option are:

  • kitchen: the default, example: 9:16PM.
  • 24h: 24-hour time format, example: 21:16.

Install

homebrew:

brew install caarlos0/tap/timer

macports:

sudo port install timer

snap:

snap install timer

apt:

echo 'deb [trusted=yes] https://repo.caarlos0.dev/apt/ /' | sudo tee /etc/apt/sources.list.d/caarlos0.list
sudo apt update
sudo apt install timer

yum:

echo '[caarlos0]
name=caarlos0
baseurl=https://repo.caarlos0.dev/yum/
enabled=1
gpgcheck=0' | sudo tee /etc/yum.repos.d/caarlos0.repo
sudo yum install timer

arch linux:

yay -S timer-bin

deb/rpm/apk:

Download the .apk, .deb or .rpm from the releases page and install with the appropriate commands.

manually:

Download the pre-compiled binaries from the releases page or clone the repo build from source.

Badges

Release

Software License

Build

Go Report Card

Powered By: GoReleaser

More Repositories

1

env

A simple and zero-dependencies library to parse environment variables into structs
Go
4,239
star
2

starcharts

Plot your repository stars over time.
Go
1,016
star
3

dotfiles.zsh

Config files for ZSH, Java, Ruby, Go, Editors, Terminals and more.
Shell
700
star
4

svu

Semantic Version Util
Go
413
star
5

tasktimer

Task Timer (tt) is a dead simple TUI task timer
Go
319
star
6

dotfiles.fish

my dotfiles
Lua
305
star
7

fork-cleaner

Quickly clean up unused forks on your github account.
Go
261
star
8

domain_exporter

Exports the expiration time of your domains as prometheus metrics.
Go
185
star
9

org-stats

Get the contributor stats summary from all repos of any given organization
Go
180
star
10

twitter-cleaner

Automatically delete tweets, retweets, and favorites from your timeline, and, if provided, from your twitter archive as well.
Go
93
star
11

jsonfmt

Like gofmt, but for JSON files.
Go
71
star
12

dotfiles

dotfiles (home-manager), nixOS, and nix-darwin configurations
Nix
66
star
13

clone-org

Clone all repos of a github organization
Go
65
star
14

parttysh

something really useful: a party parrot over ssh
Go
55
star
15

httperr

func(w http.ResponseWriter, r *http.Request) error
Go
51
star
16

log

Colorful CLI logger
Go
47
star
17

speedtest-exporter

Exports speedtest-cli metrics in the prometheus format
Go
45
star
18

testfs

A simple fs.FS implementation to be used inside tests.
Go
31
star
19

timea.go

timea.go (did you see what I did there?) is a simple library to print given times in "time ago" manner.
Go
26
star
20

name-generator

quick'n'dirty name generator using docker's namesgenerator pkg
Go
24
star
21

github_releases_exporter

Exports GitHub release metrics to the Prometheus format
Go
21
star
22

version_exporter

Monitor the versions of the things you run and care about
Go
20
star
23

go-version

Version library extracted from sigs.k8s.io/release-utils
Go
19
star
24

awesome-twitter-communities

A list of awesome twitter communities
18
star
25

karmahub

Compares the amount of issues and pull requests you created with the amount of comments and code reviews you did.
Go
17
star
26

xdg-open-svc

xdg-open as a service
Go
16
star
27

go-gumroad

Easily check licenses against Gumroad's API.
Go
16
star
28

go-sshagent

A simple SSH Agent implementation, written in Go, mainly to be used within tests.
Go
15
star
29

fastcom-exporter

Prometheus Fast.com exporter
Go
15
star
30

discord-applemusic-rich-presence

Discord's Rich Presence from Apple Music
Go
14
star
31

promfmt

format prometheus .rules files
Go
13
star
32

caarlos0

13
star
33

nur

My Nix User Repository
Nix
12
star
34

kube-shutdown-after

Shutdown pods in sandbox clusters when it's not work hours
Go
12
star
35

duration

Copy of stdlib's time.Duration, but ParseDuration accepts other bigger units such as days, weeks, months and years
Go
11
star
36

tablewriter

A very simple table using lipgloss and text/tabwriter.
Go
11
star
37

sshmarshal

Code copied from x/crypto and golang/go#37132
Go
11
star
38

ctrlc

Go library that provides an easy way of having a task that is context-aware and deals with SIGINT and SIGTERM signals
Go
11
star
39

home

my home k3s cluster
10
star
40

goreleaserfiles

my goreleaser.yml files
Shell
9
star
41

homekit-amt8000

Homekit bridge for Intelbras AMT8000 Alarm Systems
Go
9
star
42

meta

reusable github actions workflows and other shareable configuration files ๐Ÿซฅ
Go
7
star
43

linktree

static linktree with tailwindcss and html
HTML
6
star
44

uhr

Zeichenorientierte Benutzerschnittstelle Uhr
Go
6
star
45

homekit-shelly

Homekit bridge for Shelly Flood and Smoke sensors
Go
5
star
46

homekit-solarman

Homekit bridge for Solarman Inverters
Go
5
star
47

solarman-exporter

Prometheus Exporter for SolarmanPV
Go
5
star
48

advent-of-code-2022

Advent Of Code 2022 โ€” In Rust, btw
Rust
5
star
49

teatest-example

example teatest app
Go
4
star
50

sinkhole

docker image that just responds any path with 200 and does nothing, for testing
Go
4
star
51

homebrew-tap

Homebrew Formulae to my binaries, powered by @goreleaser
Ruby
4
star
52

esp8266-garage-door

Homekit controller and firmware for an ESP8266-based automated garage door
Go
3
star
53

beckeros

Rust
3
star
54

ziglings

learning some zig :P
Zig
3
star
55

go-solarman

Go client for the SolarmanPV API
Go
2
star
56

transactional

a sqlx transaction wrapper for http.Handler
Go
2
star
57

servers

ansible playbook for my servers
Jinja
2
star
58

sync

Simple sync primitives I use here and there, extracted so I can reuse them
Go
1
star
59

dockerfiles

Dockerfile
1
star
60

fish-git-fetch-merge

git fetch && git merge in a breeze
Shell
1
star