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

Attributes

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
maxLines The maximum number of lines to keep in the buffer. Default: 256. Any positive integer
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.
tail Automatically scroll with new output. Default: false. true, false
title Optional The title to display in the widget’s onscreen box.

Examples

Source Code

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