From 54bbb081a9cbf078188bec90ed6575271348b63d Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Tue, 7 Feb 2012 00:50:27 +0100 Subject: New names for my mailboxes, mostly for screen space on my netbook --- .config/herbstluftwm/panel.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to '.config/herbstluftwm/panel.sh') diff --git a/.config/herbstluftwm/panel.sh b/.config/herbstluftwm/panel.sh index 38c365f..52bcaa5 100755 --- a/.config/herbstluftwm/panel.sh +++ b/.config/herbstluftwm/panel.sh @@ -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') -- cgit v1.2.3-54-g00ecf