aboutsummaryrefslogtreecommitdiff
path: root/Mail/mutt/notify.sh
diff options
context:
space:
mode:
authorVasil Zlatanov <vasil.zlatanov@gmail.com>2015-08-18 01:58:09 +0200
committerVasil Zlatanov <vasil.zlatanov@gmail.com>2015-08-18 01:58:09 +0200
commite966aae2dd9d90d6c2a745ecb4f5c528bd0161fe (patch)
tree497bb2e2a61763f0874db5a8e20ebc2daaf85fd2 /Mail/mutt/notify.sh
parente26958b154d0457c1019bc48a5ff0ed637cf3eac (diff)
downloaddotfiles-e966aae2dd9d90d6c2a745ecb4f5c528bd0161fe.tar.gz
dotfiles-e966aae2dd9d90d6c2a745ecb4f5c528bd0161fe.tar.bz2
dotfiles-e966aae2dd9d90d6c2a745ecb4f5c528bd0161fe.zip
mutt update
Diffstat (limited to 'Mail/mutt/notify.sh')
-rwxr-xr-xMail/mutt/notify.sh27
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