tmux / tmux

tmux source code
Other
34.18k stars 2.08k forks source link

Use popups as toast notifcations? #4032

Closed Garulf closed 2 weeks ago

Garulf commented 1 month ago

I have been improving my workflow using tmux's awesome display-popup and display-menu command. Would it be possible to have an option for a popup menu to not steal focus? This would allow for some cool use cases like toast notifications.

I included some examples below:

image

image

nicm commented 1 month ago

I think it would be possible for popups not to steal key presses from the panes now that they do not block redrawing, but I don't know how difficult it would be. Look at the overlay section in server_client_handle_key, I would start by disabling that and see if it works, if it does then you would need to add a flag to say "this is noninteractive overlay".