blob: 4dbc0f628e6819aee04ef8792c3205028574b880 (
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/newmail ];then
rm ~/.mutt/newmail
fi
fi
|