Skip to content

Digital Clock

Displays a configurable digital clock.

Configuration

digitalclock screenshot

digitalclock:
  color: orange
  enabled: true
  font: bigfont
  hourFormat: 12
  position:
    top: 0
    left: 1
    height: 1
    width: 1
  refreshInterval: 1s
  title: "big clock"
  type: "digitalclock"

Configuration - compact variant

Set withDatePrefix to False and pass in a custom dateFormat according to go.

digitalclock screenshot

digitalclock:
  withDatePrefix: False
  dateFormat: "Monday Jan 02 2006"
  color: orange
  enabled: true
  font: bigfont
  hourFormat: 12
  position:
    top: 0
    left: 1
    height: 1
    width: 1
  refreshInterval: 1s
  title: "big clock"
  type: "digitalclock"

Attributes

Name Value
color
The color to display the clock time in.
font
The font to display the clock time in. Default: bigfont
bigfont, digitalfont
hourFormat
Optional The format of the clock. Default: 24.
12, 24
dateFormat
Optional The format of the date. Default: Monday January 02 2006.
Any valid Go date layout which is handled by Time.Format.
withDatePrefix
Optional Whether to display `Date:` in front of the date. Default: True.
True, False

Source Code

https://github.com/wtfutil/wtf/tree/master/modules/digitalclock