From 6de603081f22f8db294fb01bd25cca8cd6076db4 Mon Sep 17 00:00:00 2001 From: David JULIEN Date: Tue, 2 Mar 2021 20:27:15 +0100 Subject: [PATCH] format: statusbar date display mailbox display battery icon --- .config/mutt/neomutt.muttrc | 4 +--- .local/bin/statusbar/sb-battery | 2 +- .local/bin/statusbar/sb-mailbox | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.config/mutt/neomutt.muttrc b/.config/mutt/neomutt.muttrc index fa2da99..a448f1d 100644 --- a/.config/mutt/neomutt.muttrc +++ b/.config/mutt/neomutt.muttrc @@ -3,11 +3,9 @@ # More information : https://github.com/LukeSmithxyz/mutt-wizard -# This file contains part of mutt-wizard's default settings. -# mutt-wizard will have this file sourced from your muttrc. set mailcap_path = /home/swytch/.config/mutt/mailcap:$mailcap_path set mime_type_query_command = "file --mime-type -b %s" -set date_format="%y/%m/%d %I:%M%p" +set date_format="%d/%m/%y %I:%M%p" set index_format="%2C %Z %?X?A& ? %D %-15.15F %s (%-4.4c)" set sort = 'reverse-date' set smtp_authenticators = 'gssapi:login' diff --git a/.local/bin/statusbar/sb-battery b/.local/bin/statusbar/sb-battery index 1d4f87c..48d7821 100755 --- a/.local/bin/statusbar/sb-battery +++ b/.local/bin/statusbar/sb-battery @@ -42,7 +42,7 @@ do status="" else case "$capacity" in - [8-9][0-9]) status="" ;; + 100|[8-9][0-9]) status="" ;; [6-7][0-9]) status="" ;; [4-5][0-9]) status="" ;; [2-3][0-9]) status="" ;; diff --git a/.local/bin/statusbar/sb-mailbox b/.local/bin/statusbar/sb-mailbox index 73ae025..1f7fd24 100755 --- a/.local/bin/statusbar/sb-mailbox +++ b/.local/bin/statusbar/sb-mailbox @@ -17,7 +17,7 @@ do if [ $new -gt 0 ]; then [ -n "$(echo "$acc" | sed -n '/@etu/p')" ] && box="" [ -n "$(echo "$acc" | sed -n '/@posteo/p')" ] && box="" - unread="$unread/$box:$new" + unread="$unread/$box$new" fi done [ -n "$unread" ] && unread="($(echo "$unread" | cut -c 2-))" || exit