From 523043be4994fb9cf463d4c7e8ca4b85c87ed4a3 Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Thu, 9 Feb 2012 09:14:01 +0100 Subject: [PATCH] .config/herbstluftwm/panel.sh --- .config/herbstluftwm/panel.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.config/herbstluftwm/panel.sh b/.config/herbstluftwm/panel.sh index 52bcaa5..56d06fc 100755 --- a/.config/herbstluftwm/panel.sh +++ b/.config/herbstluftwm/panel.sh @@ -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: