Skip to content

Instantly share code, notes, and snippets.

@duboisf
Created February 23, 2024 15:44
Show Gist options
  • Save duboisf/4cfb3fa8b9b82feee1b8f6a68a40901f to your computer and use it in GitHub Desktop.
Save duboisf/4cfb3fa8b9b82feee1b8f6a68a40901f to your computer and use it in GitHub Desktop.
Desktop notifications from terminal

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment