Skip to content
Jake Stanger edited this page Aug 14, 2022 · 11 revisions

Script

Executes a script and shows the result of stdout on a label.

Configuration

Type: script

Name Type Default Description
path string null Path to the script on disk
interval number 5000 Number of milliseconds to wait between executing script
JSON
{
  "right": [
    {
      "type": "script",
      "path": "/home/jake/.local/bin/phone-battery",
      "interval": 5000
    }
  ]
}
TOML
[[right]]
type = "script"
path = "/home/jake/.local/bin/phone-battery"
interval = 5000
YAML
right:
  - type: "script"
    path: "/home/jake/.local/bin/phone-battery"
    interval : 5000
Corn
{
  right = [
    {
      type = "script"
      path = "/home/jake/.local/bin/phone-battery"
      interval = 5000
    }
  ]
}

Styling

Selector Description
#script Script widget label
Clone this wiki locally