Digital Clock

digitalclock screenshot

Displays a configurable digital clock.

Configuration

digitalclock:
  color: orange
  enabled: true
  font: bigfont
  hourFormat: 12
  position:
    top: 0
    left: 1
    height: 1
    width: 1
  refreshInterval: 1
  title: "big clock"
  type: "digitalclock"
Name Description Value
border Optional Whether or not to draw this widget with a border. Default: true. true, false
color The color to display the clock time in. Any X11 color name or long-form hex value (i.e.: #ff0000).
font The font to display the clock time in. bigfont or digitalfont
hourFormat Whether to display the time in 12-hour or 24-hour format. 12 or 24
enabled Optional Whether or not this module is executed and if its data displayed onscreen. Default: false. true, false
position Defines where in the grid this module’s widget will be displayed.
refreshInterval Optional How often, in seconds, this module will update its data. Default: 300. Any positive integer.

Source Code

wtf/modules/digitalclock/