From 6f0a369a6e684fc80d6dff6b916c5edc69f1cf88 Mon Sep 17 00:00:00 2001 From: Ben Phelps Date: Sat, 27 Aug 2022 02:55:41 +0300 Subject: [PATCH] Updated Information Widgets (markdown) --- Information-Widgets.md | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/Information-Widgets.md b/Information-Widgets.md index cef87ae..d3d532a 100644 --- a/Information-Widgets.md +++ b/Information-Widgets.md @@ -11,8 +11,6 @@ As an example, we'll place two resource widgets, one that reports all stats, and disk: /mnt/storage - resources: - cpu: false - memory: false disk: /mnt/backups ``` @@ -34,6 +32,24 @@ The disk path is the path reported by `df` (Mounted On), or the mount point of t disk: /disk/mount/path ``` +You can also pass a `label` option, which allows you to group resources under named sections, + +```yaml +- resources: + label: System + cpu: true + memory: true + +- resources: + label: Storage + disk: /mnt/storage +``` + +Which produces something like this, + +Screenshot 2022-08-27 at 2 52 20 AM + + ## Weather The weather widget uses the weatherapi.com API, so you will need to [register](https://www.weatherapi.com/signup.aspx) and grab your API key (free tier is more than enough).