1
0
Fork 0
mirror of https://github.com/Zedfrigg/ironbar.git synced 2025-07-02 03:01:04 +02:00

feat: dynamic tooltips

Resolves #36
This commit is contained in:
Jake Stanger 2022-11-30 22:27:56 +00:00
parent 1320639d4e
commit d20972cb32
No known key found for this signature in database
GPG key ID: C51FC8F9CB0BEA61
7 changed files with 79 additions and 36 deletions

View file

@ -42,6 +42,17 @@ For example:
poll:5000:uptime -p | cut -d ' ' -f2-
```
#### Embedding
Some string config options support "embedding scripts". This allows you to mix static/dynamic content.
An example of this is the common `tooltip` option.
Scripts can be embedded in these cases using `{{double braces}}` and the shorthand syntax:
```json
"Up: {{30000:uptime -p | cut -d ' ' -f2-}}"
```
### Longhand (object)
An object consisting of the `cmd` key and optionally the `mode` and/or `interval` keys.