New names for my mailboxes, mostly for screen space on my netbook

This commit is contained in:
Tom Willemsen 2012-02-07 00:50:27 +01:00
parent 00556c5ab0
commit 54bbb081a9

View file

@ -64,7 +64,9 @@ function print_tags() {
} }
function print_mailboxes() { function print_mailboxes() {
declare -A mailnames
mailboxes=(ninthfloor gmail arch aethon ryuslash.org) mailboxes=(ninthfloor gmail arch aethon ryuslash.org)
mailnames=([ninthfloor]="9f" [gmail]="gm" [arch]="arc" [aethon]="aet" [ryuslash.org]="ryu")
mailtxt="" mailtxt=""
for j in "${mailboxes[@]}"; do for j in "${mailboxes[@]}"; do
mailfile="$HOME/documents/mail/$j/INBOX/new/" mailfile="$HOME/documents/mail/$j/INBOX/new/"
@ -77,7 +79,7 @@ function print_mailboxes() {
mailcolor=$bgcolor mailcolor=$bgcolor
fi fi
mailtxt="$mailtxt${separator}^bg($mailcolor)^fg(#ffffff) $j ^fg()^bg()" mailtxt="$mailtxt${separator}^bg($mailcolor)^fg(#ffffff) ${mailnames[$j]} ^fg()^bg()"
# 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')