aboutsummaryrefslogtreecommitdiff
path: root/examplebar.sh
blob: b32eae89f4251200cc2930eb90b8803abe6f7e0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#! /bin/sh

# Put any monospace font here
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 layout \
  -left test_comp sep date \
  -right test_comp \
  -center date

while true; do
  tsarc set date -text "$(date)"
  sleep 1
done