CmdRunner

Runs a terminal command on a schedule.

Configuration

cmdrunner:
  args: ["-g", "batt"]
  cmd: "pmset"
  enabled: true
  position:
    top: 6
    left: 1
    height: 1
    width: 3
  refreshInterval: 30
Name Description Value
args The arguments to the command, with each item as an element in an array.
border Optional Whether or not to draw this widget with a border. Default: true. true, false
cmd The terminal command to be run, withouth the arguments. Ie: ping, whoami, curl.
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

Examples

Source Code

wtf/modules/cmdrunner/