Difference between revisions of "Terminator"

From ArchWiki
Jump to: navigation, search
m (Key commands: Remove space.)
(simplification and beautification of wikilinks (interactive))
(Tag: wiki-scripts)
 
(20 intermediate revisions by 13 users not shown)
Line 1: Line 1:
 +
{{DISPLAYTITLE:Terminator}}
 
[[Category:Terminal emulators]]
 
[[Category:Terminal emulators]]
{{DISPLAYTITLE:Terminator}}
+
[[ja:Terminator]]
[[de:terminator]]
+
[http://gnometerminator.blogspot.com/p/introduction.html Terminator] is a [[Wikipedia:Terminal emulator|terminal emulator]] which supports tabs and multiple resizable terminal panels in one window. It is based on [[Wikipedia:GNOME Terminal|GNOME Terminal]].  
[[es:terminator]]
+
==Installation==
[[fr:terminator]]
+
{{Pkg|terminator}} is available in the [[official repositories]]. Install {{AUR|terminator-gtk3-bzr}} for the latest (trunk) version.
[[sr:terminator]]
+
 
[http://gnometerminator.blogspot.com/p/introduction.html Terminator] is a [[Wikipedia:Terminal emulator|terminal emulator]] supporting tabs and multiple resizable terminal panels in one window native based on [[Wikipedia:GNOME Terminal|GNOME Terminal]].  
+
==Configuration==
 +
See the [[Wikipedia:man page|man page]] or right click Terminator and then click ''Preferences''.
 +
man terminator_config
 +
 
 +
User-specific configuration can be found in {{ic|~/.config/terminator/config}}.
 +
 
 +
=== GTK+ customization ===
  
==Installation==
+
{{style}}
  
{{Pkg|terminator}} is available in the [[Official Repositories|official repositories]].
+
Terminator supports tabs. Tab header height is sometimes considered too big. This can be fixed with gtk styling.
 +
From version 1.9 Terminator uses gtk+ 3, so that configuration can be done in {{ic|~/.config/gtk-3.0/gtk.css}}.
 +
The items to customize are 'notebook tab', 'notebook tab button'. (note that this affects other gtk3 applications, too).
  
# pacman -S terminator
+
Example config:
  
==Configuration==
+
{{hc|~/.config/gtk-3.0/gtk.css|<nowiki>
See the [[Wikipedia:man page|man page]] or right click terminator -> Settings.
+
notebook tab {
man terminator_config
+
  min-height: 0;
 +
  padding-top: 2px;
 +
  padding-bottom: 2px;
 +
}
  
The config file can be found here:
+
notebook tab button {
~/.config/terminator/config
+
  min-height: 0;
 +
  min-width: 0;
 +
  padding: 1px;
 +
  margin-top: 1px;
 +
  margin-bottom: 1px;
 +
}
 +
</nowiki>}}
  
 
==Key commands==
 
==Key commands==
  
 
{{ic|F11}} Toggle fullscreen
 
{{ic|F11}} Toggle fullscreen
 
  
 
{{ic|Ctrl + Shift+ O}} Split terminals h'''o'''rizontally
 
{{ic|Ctrl + Shift+ O}} Split terminals h'''o'''rizontally
Line 32: Line 49:
  
 
{{ic|Ctrl + Shift+ T}} Open new tab  
 
{{ic|Ctrl + Shift+ T}} Open new tab  
 
  
 
{{ic|Alt + ↑}} Move to the terminal above the current one
 
{{ic|Alt + ↑}} Move to the terminal above the current one
Line 41: Line 57:
  
 
{{ic|Alt + →}} Move to the terminal right of the current one
 
{{ic|Alt + →}} Move to the terminal right of the current one
 +
 +
==Managing profiles==
 +
It is possible to start terminator with a random profile every time. To avoid unexpected behavior, you should start with a clean {{ic|[profiles]}} section. You can copy the one from this file: http://pastebin.com/gGvYH6zD. It contains many well-known color schemes. Copy its contents to your {{ic|config}} file, which is located in {{ic|~/.config/terminator/}}. Then, {{ic|cat}} your list of profiles to a destination of your choice.
 +
 +
cat $HOME/.config/terminator/config | grep -B 1 'background_color' | grep '\]\]' | tr -d '[]' > $HOME/.config/terminator/profiles
 +
 +
If you add more profiles in the future and would like to have them included in the startup pool, you will have to reissue the command above. You can create an [[alias]].
 +
 +
You must now modify Terminator's desktop file so that it selects a random profile from this list at startup.
 +
 +
sudo nano /usr/share/applications/terminator.desktop
 +
 +
Find the {{ic|Exec}} line and comment it out with a {{ic|#}}. Add your own {{ic|Exec}} line as follows.
 +
 +
# Exec=terminator
 +
Exec=sh -c "terminator -p $( shuf -n 1 $HOME/.config/terminator/profiles )"
 +
 +
Save the file and restart your [[desktop environment]].
 +
 +
Bonus: Go to the terminator preferences and under the "keybindings" tab, take note of how to switch to the next profile. This way,if the profile Terminator has started with is not your liking, you can quickly change it.
  
 
===Drag and Drop===
 
===Drag and Drop===
Line 49: Line 85:
  
 
==Plugins==
 
==Plugins==
Terminator also supports plugins. Please read [http://www.tenshu.net/2010/04/writing-terminator-plugins.html Writing Terminator plugins] for more details.
+
Terminator also supports plugins. See [http://www.tenshu.net/2010/04/writing-terminator-plugins.html writing Terminator plugins] for more details.
  
==External resources==
+
==See also==
 
*[http://gnometerminator.blogspot.com/p/introduction.html Terminator] - Official site
 
*[http://gnometerminator.blogspot.com/p/introduction.html Terminator] - Official site
 
*[http://www.tenshu.net/2010/04/writing-terminator-plugins.html Writing Terminator plugins] - Terminator Plugin HOWTO
 
*[http://www.tenshu.net/2010/04/writing-terminator-plugins.html Writing Terminator plugins] - Terminator Plugin HOWTO
 
*[http://code.launchpad.net/terminator/ Terminator BZR ] - Source code
 
*[http://code.launchpad.net/terminator/ Terminator BZR ] - Source code

Latest revision as of 14:37, 30 March 2017

Terminator is a terminal emulator which supports tabs and multiple resizable terminal panels in one window. It is based on GNOME Terminal.

Installation

terminator is available in the official repositories. Install terminator-gtk3-bzrAUR for the latest (trunk) version.

Configuration

See the man page or right click Terminator and then click Preferences.

man terminator_config

User-specific configuration can be found in ~/.config/terminator/config.

GTK+ customization

Tango-edit-clear.pngThis article or section needs language, wiki syntax or style improvements.Tango-edit-clear.png

Reason: please use the first argument of the template to provide a brief explanation. (Discuss in Talk:Terminator#)

Terminator supports tabs. Tab header height is sometimes considered too big. This can be fixed with gtk styling. From version 1.9 Terminator uses gtk+ 3, so that configuration can be done in ~/.config/gtk-3.0/gtk.css. The items to customize are 'notebook tab', 'notebook tab button'. (note that this affects other gtk3 applications, too).

Example config:

~/.config/gtk-3.0/gtk.css
notebook tab {
  min-height: 0;
  padding-top: 2px;
  padding-bottom: 2px;
}

notebook tab button {
  min-height: 0;
  min-width: 0;
  padding: 1px;
  margin-top: 1px;
  margin-bottom: 1px;
}

Key commands

F11 Toggle fullscreen

Ctrl + Shift+ O Split terminals horizontally

Ctrl + Shift+ E Split terminals vertically

Ctrl + Shift+ W Close current Panel

Ctrl + Shift+ T Open new tab

Alt + ↑ Move to the terminal above the current one

Alt + ↓ Move to the terminal below the current one

Alt + ← Move to the terminal left of the current one

Alt + → Move to the terminal right of the current one

Managing profiles

It is possible to start terminator with a random profile every time. To avoid unexpected behavior, you should start with a clean [profiles] section. You can copy the one from this file: http://pastebin.com/gGvYH6zD. It contains many well-known color schemes. Copy its contents to your config file, which is located in ~/.config/terminator/. Then, cat your list of profiles to a destination of your choice.

cat $HOME/.config/terminator/config | grep -B 1 'background_color' | grep '\]\]' | tr -d '[]' > $HOME/.config/terminator/profiles

If you add more profiles in the future and would like to have them included in the startup pool, you will have to reissue the command above. You can create an alias.

You must now modify Terminator's desktop file so that it selects a random profile from this list at startup.

sudo nano /usr/share/applications/terminator.desktop

Find the Exec line and comment it out with a #. Add your own Exec line as follows.

# Exec=terminator
Exec=sh -c "terminator -p $( shuf -n 1 $HOME/.config/terminator/profiles )"

Save the file and restart your desktop environment.

Bonus: Go to the terminator preferences and under the "keybindings" tab, take note of how to switch to the next profile. This way,if the profile Terminator has started with is not your liking, you can quickly change it.

Drag and Drop

The layout can be modified by moving terminals with Drag and Drop.

More key commands

man terminator

Plugins

Terminator also supports plugins. See writing Terminator plugins for more details.

See also