From 4b66da7ff8060fffdeac1cc4cb27f3182b3f2d46 Mon Sep 17 00:00:00 2001 From: Vasil Zlatanov Date: Sun, 23 Feb 2014 16:59:47 +0100 Subject: First commit of dotfiles. --- mutt/notify.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 mutt/notify.sh (limited to 'mutt/notify.sh') 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" -- cgit v1.2.3-54-g00ecf