diff options
author | 2020-12-03 01:02:31 +0100 | |
---|---|---|
committer | 2020-12-03 01:02:31 +0100 | |
commit | b31f48d09f786af5c1a3eb8bfb52cfb0490bda28 (patch) | |
tree | 42375d84539384b15ce8ecfa6accfd19453274c9 /mail | |
parent | e2219fed326e3a1e7b51f874cd3875d21ea869b7 (diff) | |
download | status_blocks-b31f48d09f786af5c1a3eb8bfb52cfb0490bda28.tar.gz status_blocks-b31f48d09f786af5c1a3eb8bfb52cfb0490bda28.tar.bz2 status_blocks-b31f48d09f786af5c1a3eb8bfb52cfb0490bda28.zip |
init comit
Diffstat (limited to 'mail')
-rwxr-xr-x | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -0,0 +1,4 @@ +#!/bin/sh +NEW_MAIL="$(find "$HOME/.local/share/mail/$1/INBOX/new/" -type f 2> /dev/null | wc -l)" +[ $NEW_MAIL -gt 0 ] && COLOR=$(echo '\003') || COLOR='' +printf '%s%s%s\001' $COLOR " $2" $NEW_MAIL |