You might want to use desktop notifications, see /usr/share/doc/nohang/examples