.config/herbstluftwm/panel.sh

This commit is contained in:
Tom Willemsen 2012-03-27 21:02:33 +02:00
parent c38b2998a3
commit c70f9f2730

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")+5 let mailtxt_width=$(textwidth "$font" "$mailtxt_only")+10
echo -n "^p(_RIGHT)^p(-$mailtxt_width)$mailtxt" echo -n "^p(_RIGHT)^p(-$mailtxt_width)$mailtxt"
} }