commit 650df299ab1191c6b3e37e28c4e4f7a2c78cb9c5 parent bd05be79e5a80dd4addad5135f395d8ce3cfd25d Author: Jake Koroman <jakekoroman@gmail.com> Date: Sun, 28 Apr 2024 20:06:50 -0400 update notifications for wayland sessions Diffstat:
M | bin/mailsync | | | 5 | ++++- |
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/bin/mailsync b/bin/mailsync @@ -32,7 +32,10 @@ export GPG_TTY="$(tty)" lastrun="${XDG_CONFIG_HOME:-$HOME/.config}/mutt/.mailsynclastrun" notify () { - $HOME/scripts/swaymsg_exec.sh notify-send -t 5000 --app-name="mutt-wizard" "$(echo "$1" | sed 's/ /\\ /g')" "$(echo "$2" | sed 's/ /\\ /g')" + # just get needs dbus path for cron to notify properly + # see .zprofile for dbus-session-addr file generation + export DBUS_SESSION_BUS_ADDRESS="$(cat /home/jake/.cache/dbus-session-addr)" + notify-send -t 5000 --app-name="mutt-wizard" "$1" "$2" } # Check account for new mail. Notify if there is new content.