aboutsummaryrefslogtreecommitdiff
path: root/mutt/notify.sh
blob: a628c5243e0811bb76a64ac327257b2b419f8fc2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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