blob: d8fd6cc781189a6f0b470fa3b80105f2fd687b9b (
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
if [ $? -eq 0 ];
then
xset led 1
touch ~/.mutt/newmail
else
xset -led 1
if [ -e ~/.mutt/newmai ];then
rm ~/.mutt/newmail
fi
fi
|