1: posts
Reading ModeRO
$ cat 20200106_tilix.md

#Installing and configuring the Tilix terminal emulator

Date:2020-01-06 (Mon)
>Installing Tilix on Ubuntu, making it the default terminal, and customizing its appearance and behavior.

Until recently I used GNOME Terminal, the default terminal on my Ubuntu installation.
I was increasingly working in several terminals at once and missed being able to split the window into panes.
While looking for an alternative I came across Tilix and decided to try it.
Here’s how I installed Tilix and configured it for everyday use.

##In this article

  • Installing Tilix
  • Changing the default terminal
  • Initial setup of Tilix

ℹ️ My setup: Ubuntu 18.04 LTS.

##Installing Tilix

Installing Tilix itself is straightforward.
It’s available through apt:
The project repository has more installation details.

Bash
sudo apt update
sudo apt install tilix

Start Tilix with this command:

Bash
tilix

On my machine, the first launch produced this error:

Tilix showing a VTE configuration error

The page linked from the error explained the fix.
Append this to ~/.bashrc, or ~/.zshrc if you use zsh:

Bash
if [ $TILIX_ID ] || [ $VTE_VERSION ]; then
    source /etc/profile.d/vte.sh
fi

Then run:

Bash
sudo ln -s /etc/profile.d/vte-2.91.sh /etc/profile.d/vte.sh

Reopen Tilix and check that the error is gone.

##Changing the default terminal

Next I changed my default terminal from GNOME Terminal to Tilix.
Run the following command.

Bash
sudo update-alternatives --config x-terminal-emulator

Select the entry for Tilix. In the example below, it’s number 2.

alternative x-terminal-emulator (/usr/bin/x-terminal-emulator を提供) には 2 個の選択肢があります。

  選択肢    パス                           優先度  状態
------------------------------------------------------------
* 0            /usr/bin/gnome-terminal.wrapper   40        自動モード
  1            /usr/bin/gnome-terminal.wrapper   40        手動モード
  2            /usr/bin/tilix.wrapper            30        手動モード

現在の選択 [*] を保持するには <Enter>、さもなければ選択肢の番号のキーを押してください:

Press Ctrl-Alt-T (the default shortcut) and check that Tilix opens.

##Configuring Tilix

The remaining settings are personal preferences. I prefer a dark terminal to the light colors Tilix starts with.
Therefore, I proceed to change the settings.

Open Preferences from the Tilix menu.
I set it up as follows.

Tilix preferences window

The changes are as follows.

  • Change the color scheme. I chose Monokai Dark.
  • Setting the transparency of the screen

Here’s the terminal with those settings:

Tilix's Window

It now uses dark colors, with the desktop visible through the background.
It feels really good.

To split the window and open a terminal on the right, press Ctrl-Alt-R.

Two terminals side by side in Tilix

That’s exactly the shortcut I wanted.

##Wrapping up

That completes my move from GNOME Terminal to Tilix.
I’ll keep refining my terminal setup as I use it.

## Comments

"20200106_tilix.md" [readonly]1L, 3096B
utf-8100%