From 8d416aa3cc6a562cb4d676eafb92d52b1ef3d334 Mon Sep 17 00:00:00 2001 From: Mohammad Reza Karimi Date: Tue, 10 Feb 2026 09:56:03 -0500 Subject: updates --- scripts/dot-local/bin/mailsync | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'scripts/dot-local/bin/mailsync') diff --git a/scripts/dot-local/bin/mailsync b/scripts/dot-local/bin/mailsync index be2f93d..4b0df46 100755 --- a/scripts/dot-local/bin/mailsync +++ b/scripts/dot-local/bin/mailsync @@ -23,7 +23,12 @@ fi notify() { - notify-send --app-name="Mail" -- "$1" "$2" + notify-send --app-name="Mail" --app-icon=/home/moreka/Pictures/read.png -- "$1" "$2" + # if [ $# -ge 3 ]; then + # dms notify "$1" "$2" --file "$3" --app "Mail" --icon /home/moreka/Pictures/read.png + # else + # dms notify "$1" "$2" --app "Mail" --icon /home/moreka/Pictures/read.png + # fi } MAILDIR="$XDG_DATA_HOME/mail" @@ -75,7 +80,7 @@ sync_and_notify() from="${from% *}" from="${from%\"}" from="${from#\"}" - notify "$from:" "$subject" + notify "$from:" "$subject" "$file" done ;; *) echo "No new mail for $1." ;; -- cgit v1.2.3-71-gdd5e