From ea3cc76aa66ff7e6dbf6572335082ac3e3844f5b Mon Sep 17 00:00:00 2001 From: Manuel Palenzuela Date: Thu, 13 Jun 2019 17:48:48 +0200 Subject: Formatted status bar --- scripts/dwm-status | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/dwm-status b/scripts/dwm-status index ac31623..0dedc83 100755 --- a/scripts/dwm-status +++ b/scripts/dwm-status @@ -72,6 +72,12 @@ status() { \ echo "$delim" + # Show unread mail + command -v neomutt >/dev/null 2>&1 && + echo "$delim" && + du -a ~/Mail/INBOX/new/* 2>/dev/null | wc -l | sed 's/^/: /' && + echo "$delim" + # Get the volume of ALSA's master volume output. Show an icon if or # not muted. active_sink=$(pacmd list-sinks | awk '/* index:/{print $3}') @@ -88,12 +94,6 @@ status() { \ echo $(wireless) - # Show unread mail - command -v neomutt >/dev/null 2>&1 && - echo "$delim" && - du -a ~/Mail/*/INBOX/new/* 2>/dev/null | wc -l | sed 's/^/:/' && - echo "$delim" - CPU_T=$(< /sys/devices/platform/coretemp.0/hwmon/hwmon0/temp2_input) CPU_TEMP=$(expr "$CPU_T" / 1000) -- cgit 1.4.1