cleanup: sb-mailbox notifications
dunst already follows the mouse, no need to notify every display
This commit is contained in:
parent
6786c78444
commit
e47fc9eeb4
@ -29,14 +29,12 @@ export GPG_TTY=$TTY
|
|||||||
# Config file location must be passed at execution, not as envrionment variable
|
# Config file location must be passed at execution, not as envrionment variable
|
||||||
[ -n "$MBSYNCRC" ] && alias mbsync="mbsync -c $MBSYNCRC" || MBSYNCRC="$HOME/.mbsyncrc"
|
[ -n "$MBSYNCRC" ] && alias mbsync="mbsync -c $MBSYNCRC" || MBSYNCRC="$HOME/.mbsyncrc"
|
||||||
|
|
||||||
displays="$(pgrep -a X\(org\|wayland\) | grep -wo "[0-9]*:[0-9]\+" | sort -u)"
|
notify() {
|
||||||
notify() { for x in $displays; do
|
|
||||||
notify-send "neomutt" " $2 new mail(s) in \`$1\` account."
|
notify-send "neomutt" " $2 new mail(s) in \`$1\` account."
|
||||||
done ;}
|
}
|
||||||
messageinfo() { for x in $displays; do
|
messageinfo() {
|
||||||
export DISPLAY=$x
|
|
||||||
notify-send " $from:" "$subject"
|
notify-send " $from:" "$subject"
|
||||||
done ;}
|
}
|
||||||
|
|
||||||
# Check account for new mail. Notify if there is new content.
|
# Check account for new mail. Notify if there is new content.
|
||||||
syncandnotify() {
|
syncandnotify() {
|
||||||
|
Reference in New Issue
Block a user