/go-clock

CLI clock display with a few cool features

Primary LanguageGoMIT LicenseMIT

go-clock

Alternative to tty-clock which kinda sucks. Written in Go (first Go app!)
Demos with seconds, font and color. OBS died on the second one but I don't have the time to rerecord.

Compatibility

  • Linux
  • Darwin (untested)
  • Windows (untested)

Needs unicode

Installation

Arch

go-clock is on the AUR. With yay: yay -S go-clock

Others

If you have go installed properly,

go build .
go install .
go-clock

But I am stupid so if you just build it and move the binary to /usr/bin/go-clock it works.
Or just run it in the folder you're in with ./go-clock

Usage

go-clock -h to see help for all available flags.
go-clock default settings

Flags

--color=<c> c is the foreground color. (white, red, yellow, green, mint, cyan, teal, blue, purple, magenta, violet, pink, black, grey, gray) Default = white
--seconds Enables the seconds digits
--font=<f> Font. (█default, ║pipe, ┃line) Default = default
--static Makes the clock print the time once without updating. Will exit by itself.

Fonts

Block

███   █   █   ███   █████ 
  █   █   █     █   █   █ 
  █   █   █ █   █   █   █ 
  █   █████     █   █████ 
  █       █ █   █       █ 
  █       █     █       █ 
█████     █   █████ █████ 

Line

━━┓   ┃   ┃   ━━┓   ┏━━━┓ 
  ┃   ┃   ┃     ┃   ┃   ┃ 
  ┃   ┃   ┃ █   ┃   ┃   ┃ 
  ┃   ┗━━━┫     ┃   ┗━━━┫ 
  ┃       ┃ █   ┃       ┃ 
  ┃       ┃     ┃       ┃ 
━━┻━━     ┃   ━━┻━━ ┗━━━┛ 

Pipe

══╗   ║   ║   ══╗   ╔═══╗ 
  ║   ║   ║     ║   ║   ║ 
  ║   ║   ║ █   ║   ║   ║ 
  ║   ╚═══╣     ║   ╚═══╣ 
  ║       ║ █   ║       ║ 
  ║       ║     ║       ║ 
══╩══     ║   ══╩══ ╚═══╝