.config/herbstluftwm/panel.sh

This commit is contained in:
Tom Willemsen 2012-02-09 09:14:01 +01:00
parent e4f69ad9fd
commit 523043be49

View file

@ -94,7 +94,7 @@ function print_services() {
servicetxt="$servicetxt$separator$(status $j)"
done
servicetxt_only=$(echo -n "$servicetxt" | sed 's.\^[^(]*([^)]*)..g')
let servicetxt_width=$(textwidth "$font" "$servicetxt_only")/2
let servicetxt_width=($(textwidth "$font" "$servicetxt_only")+7)/2
echo -n "^p(_CENTER)^p(-$servicetxt_width)$servicetxt"
}
@ -150,3 +150,7 @@ herbstclient pad $monitor2 -5 -5 -5 -5
done
} 2> /dev/null | dzen2 -w $width -x $x -y $y -fn "$font" -h $height \
-ta l -bg "$bgcolor"
# Local Variables:
# eval: (git-auto-commit-mode 1)
# End: