summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemsen2012-01-31 16:03:40 +0100
committerGravatar Tom Willemsen2012-01-31 16:03:40 +0100
commitce5f39a6ca5acb264f2791676b5e2b03c98876ae (patch)
tree1e981cb59da4008935cf4705a2f8cd50e7015b5f
parent768262d2530cc9350264130deb04c5e82e7ddb1a (diff)
downloaddotfiles-ce5f39a6ca5acb264f2791676b5e2b03c98876ae.tar.gz
dotfiles-ce5f39a6ca5acb264f2791676b5e2b03c98876ae.zip
.config/herbstluftwm/panel.sh
-rwxr-xr-x.config/herbstluftwm/panel.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/.config/herbstluftwm/panel.sh b/.config/herbstluftwm/panel.sh
index 448a0c6..14080b9 100755
--- a/.config/herbstluftwm/panel.sh
+++ b/.config/herbstluftwm/panel.sh
@@ -9,9 +9,9 @@ if [ -z "$geometry" ] ;then
fi
# geometry has the format: WxH+X+Y
x=${geometry[0]}
-y=${geometry[1]}
width=${geometry[2]}
height=1
+y=$(expr ${geometry[3]} - $height)
tag_width=40
font="-misc-tamsyn-medium-r-normal-*-14-*-*-*-*-*-iso8859-*"
@@ -25,7 +25,7 @@ function uniq_linebuffered() {
awk '$0 != l { print ; l=$0 ; fflush(); }' "$@"
}
-herbstclient pad $monitor $(expr $height - 4) -5 -5 -5
+herbstclient pad $monitor -5 -5 $(expr -5 + $height) -5
herbstclient pad $monitor2 -5 -5 -5 -5
{
childpid=$!