Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,8 @@ Use `output = "metrics-json"` for aggregate line gauges:
}
```

Metrics use Unicode block characters by default. If your terminal font renders those poorly, set `HUD_ASCII_BARS=1` to use ASCII bars.

Malformed structured output, non-zero exits, timeouts, and launch failures render as panel error states instead of crashing the dashboard.

## Row Drill-In And Actions
Expand Down
82 changes: 43 additions & 39 deletions docs/assets/hud-starter.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 3 additions & 9 deletions examples/starter.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,13 @@ default_timeout_secs = 10
[[panels]]
id = "orientation"
title = "Welcome"
command = "printf 'Welcome to hud!\n\nThis starter config shows the basics.\nNo external tools or authentication needed.\n\nKeys:\n q quit\n hjkl or arrows move focus\n r refresh focused panel\n R refresh all panels\n'"
timeout_secs = 5

[[panels]]
id = "clock"
title = "Clock"
command = "date"
command = "printf 'Welcome to hud!\n\nThis starter config shows the basics without external tools or authentication.\n\nTry:\n Enter open panel detail\n ? show help/actions\n r refresh focused panel\n R refresh all panels\n q quit\n'"
timeout_secs = 5

[[panels]]
id = "metrics"
title = "Sample Metrics"
command = "printf '{\"type\":\"metrics\",\"metrics\":[{\"label\":\"CPU\",\"value\":34,\"max\":100},{\"label\":\"Disk\",\"value\":62,\"max\":100},{\"label\":\"Memory\",\"value\":78,\"max\":100}]}\n'"
command = "printf '{\"type\":\"metrics\",\"metrics\":[{\"label\":\"CPU\",\"value\":34,\"max\":100},{\"label\":\"Disk\",\"value\":62,\"max\":100},{\"label\":\"Memory\",\"value\":78,\"max\":100},{\"label\":\"Focus\",\"value\":91,\"max\":100}]}\n'"
output = "metrics-json"
timeout_secs = 5

Expand All @@ -38,7 +32,7 @@ command = "printf 'Service: %s\nStatus: %s\nLatency: %s\n' '{{Service}}' '{{Stat
[[panels]]
id = "here"
title = "Working directory"
command = "pwd"
command = "printf 'Current directory:\n '; pwd; printf '\nStarter config:\n examples/starter.toml\n\nEdit this panel with action key e.\n'"
timeout_secs = 3

[[panels.actions]]
Expand Down
Loading
Loading