New names for my mailboxes, mostly for screen space on my netbook
This commit is contained in:
parent
00556c5ab0
commit
54bbb081a9
1 changed files with 3 additions and 1 deletions
|
@ -64,7 +64,9 @@ function print_tags() {
|
|||
}
|
||||
|
||||
function print_mailboxes() {
|
||||
declare -A mailnames
|
||||
mailboxes=(ninthfloor gmail arch aethon ryuslash.org)
|
||||
mailnames=([ninthfloor]="9f" [gmail]="gm" [arch]="arc" [aethon]="aet" [ryuslash.org]="ryu")
|
||||
mailtxt=""
|
||||
for j in "${mailboxes[@]}"; do
|
||||
mailfile="$HOME/documents/mail/$j/INBOX/new/"
|
||||
|
@ -77,7 +79,7 @@ function print_mailboxes() {
|
|||
mailcolor=$bgcolor
|
||||
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"
|
||||
done
|
||||
mailtxt_only=$(echo -n "$mailtxt" | sed 's.\^[^(]*([^)]*)..g')
|
||||
|
|
Loading…
Reference in a new issue