05-30-2020, 05:20 PM
(This post was last modified: 05-30-2020, 07:09 PM by Dendrocalamus64.)
And for those looking at tmux and thinking "That's too complicated", it's not. You can get started in 5 minutes.
Install:
$ sudo apt-get install tmux
Now just type tmux.
Put something in that window for a landmark, e.g. "man tmux".
Now do a Control-B (that's the command sequence) followed by c
Now you have two windows in one terminal. "C-b n" or "C-b p" to tab back and forth between them.
Now do a "C-b %". This splits the window vertically. C-b left-arrow or C-b right-arrow to go back & forth between them.
C-b Control-left arrow or C-b Alt-left arrow to resize left by 1 column or 5 columns. Same with the right arrow.
You don't have to repeat C-b for a sequence of these, just C-b once and then control or alt + any arrow any number of times.
Type "top", then C-b { and C-b } - These rotate the panes in a window.
C-b c again. Now C-b " (That's not a typo, C-b ")
Now you have it split vertically. C-b % again. You can create any layout you need.
Type "exit" to the shell or C-b x to kill a pane. C-b ! to break it out into another tab. "exec <command>", e.g. top again, will get rid of the shell and just run <command> in that pane, then when you quit <command>, the pane will close.
C-b ? to get into the help, C-b PgUp to get into the scrollback, q to exit that.
There are more commands, but these are all you need to do a lot. No more moving windows around, just put the manual page above what you're doing, or alsamixer next to the directory full of mp3s where you're running mplayer. It's also very useful when you're on a virtual terminal or serial terminal instead of X.
Install:
$ sudo apt-get install tmux
Now just type tmux.
Put something in that window for a landmark, e.g. "man tmux".
Now do a Control-B (that's the command sequence) followed by c
Now you have two windows in one terminal. "C-b n" or "C-b p" to tab back and forth between them.
Now do a "C-b %". This splits the window vertically. C-b left-arrow or C-b right-arrow to go back & forth between them.
C-b Control-left arrow or C-b Alt-left arrow to resize left by 1 column or 5 columns. Same with the right arrow.
You don't have to repeat C-b for a sequence of these, just C-b once and then control or alt + any arrow any number of times.
Type "top", then C-b { and C-b } - These rotate the panes in a window.
C-b c again. Now C-b " (That's not a typo, C-b ")
Now you have it split vertically. C-b % again. You can create any layout you need.
Type "exit" to the shell or C-b x to kill a pane. C-b ! to break it out into another tab. "exec <command>", e.g. top again, will get rid of the shell and just run <command> in that pane, then when you quit <command>, the pane will close.
C-b ? to get into the help, C-b PgUp to get into the scrollback, q to exit that.
There are more commands, but these are all you need to do a lot. No more moving windows around, just put the manual page above what you're doing, or alsamixer next to the directory full of mp3s where you're running mplayer. It's also very useful when you're on a virtual terminal or serial terminal instead of X.