diff options
author | Manuel Palenzuela <manuelpalenzuelamerino@gmail.com> | 2019-06-13 17:48:48 +0200 |
---|---|---|
committer | Manuel Palenzuela <manuelpalenzuelamerino@gmail.com> | 2019-06-13 17:48:48 +0200 |
commit | ea3cc76aa66ff7e6dbf6572335082ac3e3844f5b (patch) | |
tree | 72662cd2b8657374025e60324a4aed2c37e70559 | |
parent | Added mail number to status bar (diff) | |
download | dwm-ea3cc76aa66ff7e6dbf6572335082ac3e3844f5b.tar.gz dwm-ea3cc76aa66ff7e6dbf6572335082ac3e3844f5b.tar.bz2 dwm-ea3cc76aa66ff7e6dbf6572335082ac3e3844f5b.zip |
Formatted status bar
-rwxr-xr-x | scripts/dwm-status | 12 |
1 files 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) |