If you use TMUX, you want to read this post.
I’ve created three scripts. The first two will create a sidebar (or topbar) and run any arbitrary program in it. The third will create a new pane, zoom it, run the program, then disappear again when you’re done. It’s probably easier to show with a video:
If you’d like to see a larger version, you can on YouTube.
tmux_devour: Launch a process in a new pane, zoom the pane, kill the pane when done.
tmux_sidebar: Create a sidebar (e.g. for reading manpages) and kill when done.
tmux_topbar: Create a vertical split and kill when done.