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=$!