aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md11
1 files changed, 11 insertions, 0 deletions
diff --git a/README.md b/README.md
index b8c6db5..a21c1e5 100644
--- a/README.md
+++ b/README.md
@@ -58,3 +58,14 @@ On the right, left and center there will be a previously set `label` component.
```
tsarc layout -left label -center label -right label
```
+
+Consider the following script:
+```
+while true; do
+ tsarc set date -text "$(date)"
+ sleep 1
+done
+```
+If our tsarbar has a component named `date` somewhere in the layout and this script is running.
+It will update the date to `$(date)`, this is a clock in our bar!
+See `man date` for more info.