diff options
author | Vasil Zlatanov <vasil.zlatanov@gmail.com> | 2015-08-18 01:58:09 +0200 |
---|---|---|
committer | Vasil Zlatanov <vasil.zlatanov@gmail.com> | 2015-08-18 01:58:09 +0200 |
commit | e966aae2dd9d90d6c2a745ecb4f5c528bd0161fe (patch) | |
tree | 497bb2e2a61763f0874db5a8e20ebc2daaf85fd2 /Mail/mutt/notify.sh | |
parent | e26958b154d0457c1019bc48a5ff0ed637cf3eac (diff) | |
download | dotfiles-e966aae2dd9d90d6c2a745ecb4f5c528bd0161fe.tar.gz dotfiles-e966aae2dd9d90d6c2a745ecb4f5c528bd0161fe.tar.bz2 dotfiles-e966aae2dd9d90d6c2a745ecb4f5c528bd0161fe.zip |
mutt update
Diffstat (limited to 'Mail/mutt/notify.sh')
-rwxr-xr-x | Mail/mutt/notify.sh | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Mail/mutt/notify.sh b/Mail/mutt/notify.sh new file mode 100755 index 0000000..a628c52 --- /dev/null +++ b/Mail/mutt/notify.sh @@ -0,0 +1,27 @@ +#!/bin/bash +# Note to make xset led 1 and 2 work: +# +# /usr/share/X11/xkb/compat/ledcaps +# /usr/share/X11/xkb/compat/lednum +# and replace: +# !allowExplicit; +# with: +# allowExplicit; +# +#####################k +# Turns on CapsLock +# + +echo "$1" +echo "$1" | grep -q "New" > /dev/null 2>&1 +status=$? + +if [ $status -eq 0 ];then + xset led 1 + touch ~/.mutt/newmail +else + xset -led 1 +if [ -e ~/.mutt/newmail ];then + rm ~/.mutt/newmail +fi +fi |