Sometimes when I work, I use more than one terminal and I find it inconvenient to switch between them when all of them were invoked using Ctrl+Alt+T. Is there any program or terminal that after launching would provide me with 4 independent terminals each of them would occupy ¼ of the screen while making it easy to switch between them, for instance by using the Tab key?
You need Terminator:
For four terminals at start-up, do the following:
Open Terminator with this command:
or with this command:
Jump between the terminal windows with Ctrl+Tab.
You can assign your personal terminator command to Ctrl+Alt+T in Keyboard Settings > Shortcuts. (Thx @Wilf)
Of course you can also create a
terminator.desktop
file. Copy the original desktop file and make your changes:You can start 4 Terminals with Ctrl+Alt+T and fit them to the edges of your screen with Ctrl+Alt+Numpad[1,3,7,9] or left/right with Ctrl+Alt+Numpad[4/6] or top/bottom Ctrl+Alt+Numpad[8/2] and switch with Alt+Tab to ONE Terminal and with Alt+key above Tab between the terminals if one is active.
Or
You can use tabs with Ctrl+Shift+T and switch between the terminals with Alt+Page-Up/Page-Down.
As another alternative, I would suggest using
byobu
.The advantage is that it is text-based, meaning you can use it without a graphical environment! This is very useful when dealing with servers, which often don't have a GUI.
You even have a bottom status bar with a lot of useful information, like the date/time, the load average, etc.
The shortcuts you have to know if you use Byobu are:
sudo apt-get install byobu
will install Byobu.As a bonus, being a terminal multiplexer, it means you won't lose your session and your tabs if you closed the terminal by mistake. And you can run
byobu
in another terminal and get synchronised outputs.There are even scripts to save the layouts if you wish to persist the session across reboots.
Personally, I use
emacs
withM-x ansi-term
orM-x shell
depending on what I am doing.But if you are looking for just a terminal multiplexer then there is always the quietly revered
tmux
:https://github.com/tmux/tmux
Edit: JoKeR pointed out that you can install
tmux
withapt-get
:Just resize your terminal windows, so they all fit a corner of the screen. The Terminal can also have tabs, which might help out. Right click the window and select
New Tab
.Here's how to make windows able to resize to corners:
sudo apt-get install compizconfig-settings-manager
.sudo ccsm
or searchccsm
in Unity Dash.Grid
, underWindow Management
. Make sure it is enabled.Corners / Edges
tab and change theCorner
options to their corresponding corners.You can use tmux, a terminal multiplexer.
For four panels you can use this script
4pSession
, create the script withand add the code below
Than you can create a desktop file:
with this content:
Move between the panes with Ctrl+B and than → or ← or ↑ or ↓
My crude contribution to this question: install
wmctrl
and adjust the script bellow,that opens and positions four terminal windows, to your screen. First find out the size of your screen withxwininfo -root
and then adjust-e
parameters (they are in this order 0,x-position,y-position,width,height). Numbers I use bellow are just exampleYou could bind this as a shortcut, for instance to Ctrl+I or whatever. Another idea, without installing wmctrl, is to open 4
--geometry=
optionI would strongly recommend tmux. It offers a whole lot of customizations and total independence from the mouse (if that is concern). You can split screens horizontally, vertically, switch between them with some keystrokes, leave sessions open and reconnect to them later, etc.
With 4 terminal windows open, and while working in one of them, I can simply switch among them with Alt+` (left tick) if want to use keyboard, or simply click on the launcher icon of the terminal to bring up all its windows and click on the chosen one.
My installation is Ubuntu 14.04, with the default (Unity 3D) desktop, and updated to-date.
I don't get it why people complicate things and install 3rd party products when the default Ubuntu installation already provides the feature.
you can use Gnu Screen for this also, and use a vertical split, and horizontal split.
you can put these in your
~/.screenrc
config file. I have been able to split using most any gnu screen, with proper adjustments to .screenrc file.Some combo of below should do you in your
.screenrc
.I had it set for 6 screen once. heres my residual config from that