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
|
||||
[ -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() { for x in $displays; do
|
||||
notify() {
|
||||
notify-send "neomutt" " $2 new mail(s) in \`$1\` account."
|
||||
done ;}
|
||||
messageinfo() { for x in $displays; do
|
||||
export DISPLAY=$x
|
||||
}
|
||||
messageinfo() {
|
||||
notify-send " $from:" "$subject"
|
||||
done ;}
|
||||
}
|
||||
|
||||
# Check account for new mail. Notify if there is new content.
|
||||
syncandnotify() {
|
||||
|
Reference in New Issue
Block a user