ref: e7781c7da18272276bbdf470dc6b41ec9fdce631
parent: 1b6c728d36011c3684b4a959925f91f133722c46
author: Halfwit <michaelmisch1985@gmail.com>
date: Wed Aug 29 15:29:00 PDT 2018
Change box to outside Signed-off-by: Halfwit <michaelmisch1985@gmail.com>
--- a/README.md
+++ b/README.md
@@ -50,5 +50,7 @@
```sh
weechat '%s %s %s %s' "350" "224" "454" "261"
# Any valid sh here to emit something in the form of
+# See my dotfiles for examples
# <nameofwindow> '%s %s %s %s' <minx> <miny> <maxx> <maxy>
```
+
--- a/gitbar
+++ b/gitbar
@@ -5,11 +5,11 @@
append() {
case "$1" in
0) ;;
- [0-9]*) printf '%s\n' "[$1$2]" ;;
+ [0-9]*) printf '%s\n' "$1$2" ;;
esac
}
-printf '%s%s%s\n' \
+printf '[%s%s%s]\n' \
"$(append "$(wc -l < "$XDG_DATA_DIR/pushes")" "↑")" \
"$(append "$(wc -l < "$XDG_DATA_DIR/pulls")" "↓")" \
"$(append "$(wc -l < "$XDG_DATA_DIR/commits")" "⇄")" \