Skip to content

How to get a notification from actions on a remote host? #1525

Discussion options

You must be logged in to vote

Blink Shell comes with standard OSC sequences support. You can test it by pasting the below command into the terminal.

echo -e "\033]777;notify;Blink Shell;Hello form Blink Shell of the notification\a"

You should see a notification like this one.

Notifications will work on remote servers over ssh, as long as you are connected to the server, but aren't supported in Mosh and by default in tmux. To make it work in tmux, add this into .tmux.conf.

set -g allow-passthrough on

And try the code below:

echo -e "\\033Ptmux;\033\033]777;notify;Blink Shell;Hello from Blink Shell notification\a\033\\"

As you can see, tmux must pass an escape sequence with the tmux; prefix to make it work. Any \033 ch…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by carloscabanero
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant