Completely reworked the status bar.

It's now conky -> i3bar. To enable colors, conky produces JSON output.
The script i3bar_wrapper.bash handles the invocation of conky and
redirects the output of i3bar to i3bar_clickparser.bash, in which click
events can be handled (none implemented right now).
conky/virtualarch.conky.dzen is a conky output suitable for dzen2, it
should produce the same output as conky/virtualarch.conky does with
i3bar and JSON.
This commit is contained in:
2013-09-26 12:27:10 +02:00
parent 0e80a0c114
commit 4e5be594d5
7 changed files with 286 additions and 4 deletions

View File

@@ -0,0 +1,27 @@
#!/usr/bin/env bash
line="$1
"
log(){
echo $* >> ~/.i3/output_i3bar.log.2
}
# I'm sorry.
getval(){
echo $(echo "$1" | grep -Po "\"$2\":.*?," | awk -F ':' '{print $2}' | tr -d '",')
}
log $line
name="$(getval "$line" "name")"
log $name
case "$name" in
"time")
log "starting dzen with cal"
(echo "$(cal -1m)" ; sleep 15s) | dzen2 -w 100 -l 10 -x 1700 -y 20
;;
esac