diff options
author | Vasil Zlatanov <vasil.zlatanov@gmail.com> | 2014-02-23 16:59:47 +0100 |
---|---|---|
committer | Vasil Zlatanov <vasil.zlatanov@gmail.com> | 2014-02-23 16:59:47 +0100 |
commit | 4b66da7ff8060fffdeac1cc4cb27f3182b3f2d46 (patch) | |
tree | d596ad6a67295d3f46e4ab189fd2b3539ea83c10 /mutt/notify.sh | |
download | dotfiles-4b66da7ff8060fffdeac1cc4cb27f3182b3f2d46.tar.gz dotfiles-4b66da7ff8060fffdeac1cc4cb27f3182b3f2d46.tar.bz2 dotfiles-4b66da7ff8060fffdeac1cc4cb27f3182b3f2d46.zip |
First commit of dotfiles.
Diffstat (limited to 'mutt/notify.sh')
-rwxr-xr-x | mutt/notify.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/mutt/notify.sh b/mutt/notify.sh new file mode 100755 index 0000000..f7b44b5 --- /dev/null +++ b/mutt/notify.sh @@ -0,0 +1,15 @@ +#!/bin/bash +# +# Turns on Numlock + +echo "$1" | grep -q "New" > /dev/null 2>&1 + +if [ $? -eq 0 ]; +then + xset led 1 + +else + xset -led 1 +fi + +echo "$1" |