aboutsummaryrefslogtreecommitdiff
path: root/Mail/mutt/notify.sh
blob: d4c8d30d331b336cb145c2d037f2e2a2f7774d16 (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
28
#!/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
	echo 'Ixlear' > /tmp/panel-fifo
if [ -e ~/.mutt/newmail ];then 
	rm ~/.mutt/newmail
fi
fi