dots

Mika's dotfiles
git clone git://popovic.xyz/dots.git/
Log | Files | Refs | README

commit 3a21b614e4ef8e9f0b3676b238f97854e4d9667d
parent 6211a793fac3de7772e78dbbce7f7b9158e2f719
Author: Milutin Popovic <milutin@popovic.xyz>
Date:   Sat, 28 Mar 2026 18:58:37 +0000

bump

Diffstat:
A.local/bin/scripts/check-mail | 15+++++++++++++++
1 file changed, 15 insertions(+), 0 deletions(-)

diff --git a/.local/bin/scripts/check-mail b/.local/bin/scripts/check-mail @@ -0,0 +1,15 @@ +#!/bin/sh + +while :; do + n_mails=$(find "$XDG_DATA_HOME/mail" -path '*/INBOX/new/*' -type f 2>/dev/null | wc -l) + last_new=$(cat $XDG_CACHE_HOME/status/mail.new) + if [[ $n_mails -gt $last_new ]] + then + notify-send "New Email" "$n_mails new messages" + echo $n_mails > $XDG_CACHE_HOME/status/mail.new + + else + echo $n_mails > $XDG_CACHE_HOME/status/mail.new + fi + sleep 1 +done