summaryrefslogtreecommitdiffstats
path: root/.config/herbstluftwm/panel.sh
diff options
context:
space:
mode:
authorGravatar Tom Willemsen2012-02-14 11:30:13 +0100
committerGravatar Tom Willemsen2012-02-14 11:30:13 +0100
commit4857418dbde4c11f34a66774c5fb047119a96fe2 (patch)
treeda1ca0e3d6c8082c3ed89608b400f861b0a598b8 /.config/herbstluftwm/panel.sh
parenta925132b75c083baf85426cdf9482de9dd809261 (diff)
parent3d8f0dffd0fbb4d928e20d8322f4010c8f0804da (diff)
downloaddotfiles-4857418dbde4c11f34a66774c5fb047119a96fe2.tar.gz
dotfiles-4857418dbde4c11f34a66774c5fb047119a96fe2.zip
Merge remote-tracking branch 'gitorious/master' into phoenix
Diffstat (limited to '.config/herbstluftwm/panel.sh')
-rwxr-xr-x.config/herbstluftwm/panel.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/.config/herbstluftwm/panel.sh b/.config/herbstluftwm/panel.sh
index be8b3f6..408539f 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: