diff options
author | Urbain Vaes <urbain@vaes.uk> | 2016-01-20 18:52:36 +0000 |
---|---|---|
committer | Urbain Vaes <urbain@vaes.uk> | 2016-01-20 18:52:36 +0000 |
commit | fe054f7d5f4ffe6f6bf3121e821b7783c93d9ee2 (patch) | |
tree | 500a828a26266b4990fe5432860e66ef5702bd3b /bin/email | |
parent | 8d1b60e3a15566f2aca007911456366735f26712 (diff) |
Send notification when new mail arrives
Diffstat (limited to 'bin/email')
-rwxr-xr-x | bin/email | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -4,7 +4,7 @@ while true; do mbsync -a nmails=$(find $HOME/.mail -path '*/new/*' -type f | wc -l) - [[ nmails -ge 1 ]] && notify-send "New mail!" + [[ nmails -ge 1 ]] && notify-send -t 1 "New mail!" date sleep 5m done |