diff options
| -rw-r--r-- | Makefile | 9 | ||||
| -rwxr-xr-x | examplebar.sh | 18 |
2 files changed, 18 insertions, 9 deletions
@@ -23,3 +23,12 @@ run: $(TSAR_OUT) clean: rm $(TSAR_OUT) + +install: $(SRC) + $(CC) $(SRC) -o $(TSAR_OUT) $(CFLAGS) $(LDFLAGS) + cp tsarbar /usr/bin/tsarbar + cp tsarc /usr/bin/tsarc + +uninstall: + rm /usr/bin/tsarbar + rm /usr/bin/tsarc diff --git a/examplebar.sh b/examplebar.sh index 15e6aa4..28f8d0c 100755 --- a/examplebar.sh +++ b/examplebar.sh @@ -1,21 +1,21 @@ #! /bin/sh # Put any monospace font here -./tsarc config font "Liberation Mono:style=Regular:size=9" -./tsarc config height 16 -./tsarc config padding 4 -./tsarc config bg #FFFFFF -./tsarc config bg #FF0000 +tsarc config font "Liberation Mono:style=Regular:size=9" +tsarc config height 16 +tsarc config padding 4 +tsarc config bg #FFFFFF +tsarc config bg #FF0000 -./tsarc set test_comp -text "Testing spaces" -./tsarc set sep -text " | " +tsarc set test_comp -text "Testing spaces" +tsarc set sep -text " | " -./tsarc layout \ +tsarc layout \ -left test_comp sep date \ -right test_comp \ -center date while true; do - ./tsarc set date -text "$(date)" + tsarc set date -text "$(date)" sleep 1 done |
