From e966aae2dd9d90d6c2a745ecb4f5c528bd0161fe Mon Sep 17 00:00:00 2001 From: Vasil Zlatanov Date: Tue, 18 Aug 2015 01:58:09 +0200 Subject: mutt update --- Mail/mutt/notify.sh | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100755 Mail/mutt/notify.sh (limited to 'Mail/mutt/notify.sh') 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 -- cgit v1.2.3-54-g00ecf