diff options
| author | ne_mene <[email protected]> | 2026-03-02 12:03:34 +0100 |
|---|---|---|
| committer | ne_mene <[email protected]> | 2026-03-02 12:03:34 +0100 |
| commit | 4643850108db54d804268d6b1a43eee70a40d52f (patch) | |
| tree | 0fd9213e9bd297bbbd871e788e204759805b1470 | |
| parent | 575682781f0729807e2aa844f93594f10b9b430b (diff) | |
moar
| -rw-r--r-- | README.md | 11 | ||||
| -rwxr-xr-x | examplebar.sh | 7 |
2 files changed, 15 insertions, 3 deletions
@@ -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. diff --git a/examplebar.sh b/examplebar.sh index 9a6f163..b32eae8 100755 --- a/examplebar.sh +++ b/examplebar.sh @@ -1,14 +1,15 @@ #! /bin/sh # Put any monospace font here -tsarc config -font "Liberation Mono:style=Regular:size=9" -tsarc config -height 16 +tsarc config -font "Liberation Mono:style=Regular:size=12" +tsarc config -height 18 tsarc config -padding 4 tsarc config -foreground #FFFFFF tsarc config -background #000000 +tsarc config -gap 8 tsarc set test_comp -text "Testing spaces" -tsarc set sep -text " | " +tsarc set sep -text "|" tsarc layout \ -left test_comp sep date \ |
