diff options
-rw-r--r-- | .config/mutt/accounts/5-rbousset@secuserve.com.muttrc | 2 | ||||
-rwxr-xr-x | .local/bin/status/sb-battery | 17 |
2 files changed, 18 insertions, 1 deletions
diff --git a/.config/mutt/accounts/5-rbousset@secuserve.com.muttrc b/.config/mutt/accounts/5-rbousset@secuserve.com.muttrc index 3e01841..b0979f6 100644 --- a/.config/mutt/accounts/5-rbousset@secuserve.com.muttrc +++ b/.config/mutt/accounts/5-rbousset@secuserve.com.muttrc @@ -19,7 +19,7 @@ bind pager G bottom macro index o "<shell-escape>killall mbsync >/dev/null 2>&1; mbsync -c $XDG_CONFIG_HOME/mbsync/mbsyncrc rbousset@secuserve.com<enter>" "run mbsync to sync rbousset@secuserve.com" unmailboxes * -mailboxes "=INBOX" "=Sent" "=Drafts" "=Junk" "=Trash" "=NEWS" "=Calendrier" "=T&AOI-ches" "=Notes" "=Reports" "=Reports/OTRS" "=Reports/Trello" "=Reports/Teams" "=Reports/Unimus" "=Reports/vzdump" +mailboxes "=INBOX" "=Sent" "=Drafts" "=Junk" "=Trash" "=Keep" "=NEWS" "=Calendrier" "=T&AOI-ches" "=Notes" "=Reports" "=Reports/OTRS" "=Reports/Trello" "=Reports/Teams" "=Reports/Unimus" "=Reports/vzdump" macro index,pager gi "<change-folder>=INBOX<enter>" "go to inbox" macro index,pager Mi ";<save-message>=INBOX<enter>" "move mail to inbox" diff --git a/.local/bin/status/sb-battery b/.local/bin/status/sb-battery new file mode 100755 index 0000000..bad456c --- /dev/null +++ b/.local/bin/status/sb-battery @@ -0,0 +1,17 @@ +#!/bin/sh + +status=$(apm -b) + +[ "$status" -eq 3 ] && exit + +case $(echo $(apm -l) / 12.5 | bc) in + "0") printf "[ ]";; + "1") printf "[= ]";; + "2") printf "[== ]";; + "3") printf "[=== ]";; + "4") printf "[==== ]";; + "5") printf "[===== ]";; + "6") printf "[====== ]";; + "7") printf "[======= ]";; + "8") printf "[========]";; +esac |