With the kitty terminal, you can send desktop notifications with the following (example taken from the kitty docs):
printf '\x1b]99;i=1:d=0;Hello world\x1b\\'
printf '\x1b]99;i=1:d=1:p=body;This is cool\x1b\\'
For details about how this works is here.