If you just need to display some text or at most you need a "yes/no" answer that integrates well with your bash script, you could try herbe[1]. I was somewhat inspired by zenity, but it felt too heavy for my minimal use case.
Did you wind up picking something else?
"long build has completed"
is pretty much my primary notification.
alias n="notify-send Completed." echo -e "command\n with a long output,\n and it's last line" |tee /dev/tty| tail -n 1| { read -d '\n' _output ; notify-send "$_output"; telegram-send "$_output"; }
This will send the last n lines of stdout to:- gnome-notifications
- telegram on my phone from a bot account that uses a unique notification sound
notify-send won't work for dudik since, as he said, he doesn't use a notification server.