.config/herbstluftwm/panel.sh

This commit is contained in:
Tom Willemsen 2012-03-27 21:02:13 +02:00
parent ed3eb90ad7
commit 1175754ea3

View file

@ -87,7 +87,7 @@ function print_mailboxes() {
# echo -n "^fg($mailcolor)^ro(${tag_width}x$height)^fg()$separator" # echo -n "^fg($mailcolor)^ro(${tag_width}x$height)^fg()$separator"
done done
mailtxt_only=$(echo -n "$mailtxt" | sed 's.\^[^(]*([^)]*)..g') mailtxt_only=$(echo -n "$mailtxt" | sed 's.\^[^(]*([^)]*)..g')
let mailtxt_width=$(textwidth "$font" "$mailtxt_only")+20 let mailtxt_width=$(textwidth "$font" "$mailtxt_only")
echo -n "^p(_RIGHT)^p(-$mailtxt_width)$mailtxt" echo -n "^p(_RIGHT)^p(-$mailtxt_width)$mailtxt"
} }