Linux

Embedded Nautilus Terminal Plugin Adds Configurable Toggle Shortcut And Colors


Nautilus Terminal 3

Nautilus Terminal 3 is a tool to embed a terminal into Nautilus (Files, the default Gnome file browser). The terminal follows the file manager navigation (cd is automatically executed when navigating through folders in Nautilus).

Using this Nautilus plugin allows showing / hiding a terminal embedded in Nautilus, using the F4 key by default.

Nautilus Terminal 3.4.0 was released recently with 2 important new features. With this release it’s possible to change the terminal toggle shortcut, and to configure the background and foreground (text) terminal colors.

This tool doesn’t have a GUI from where you can change its settings directly, but it does have some options, including the 2 new ones I mentioned above. These settings can be changed using Dconf Editor, by navigating to / org / flozz / nautilus-terminal /:

Nautilus Terminal Dconf

From there, change the toggle-shortcut value from its default (F4) to any key you want, by adding the keyboard shortcut you want to use to toggle the terminal in Nautilus. E.g. to use Ctrl + F4, change the toggle-shortcut value from F4 to <Ctrl>F4.

Under / org / flozz / nautilus-terminal / you’ll also find the new background-color and foreground-color options that allow changing the terminal background and text color. 

In fact, you’ll have to change the foreground (text) color before using Nautilus Terminal 3.4.0 for the first time, because both the background and the foreground color settings are set to #000000 (black) by default. So change the foreground-color to #ffffff (white), then restart Nautilus (nautilus -q) to be able to see what you type in Nautilus Terminal.

It’s important to note that you need to restart Nautilus Terminal (by running nautilus -q in a terminal) after changing some of its settings using Dconf Editor, to be able to see the changes.

Besides these newly added features, Nautilus Terminal 3 also supports:

  • Can be set to start visible or hidden
  • Copy / paste using Ctrl+Shift+C / Ctrl+Shift+V (there’s no copy / paste context menu though)
  • Drag & drop of files and folders on the terminal (it auto-completes the path of the dragged file or folder)
  • Uses the default shell for the user
  • Detects running process: if something is running in the terminal, the cd command is not sent to the shell
  • The terminal can be display at the top or bottom of the Nautilus window

Install Nautilus Terminal 3

For Fedora there’s a Copr repository that you can use to install Nautilus Terminal. However, at the time I’m posting this, the version from this Copr repository is 3.3.0, so it has not yet been updated to the latest 3.4.0 version.

To use this Copr repository to install Nautilus Terminal in Fedora, use:

sudo dnf copr enable tomaszgasior/mushroomssudo dnf install nautilus-terminal

For Arch Linux, Nautilus Terminal is available in the Community repository, but note that it hasn’t been updated to the latest 3.4.0 version at the time I’m posting this.

Nautilus Terminal can also be installed using PIP (for both Python 2 and Python 3, depending on which Nautilus Python bindings you’re using). For this, you need to install the pip, python-psutil and Nautilus Python bindings from your Linux distribution’s repositories:

  • Debian Bullseye or Sid / Ubuntu 20.04 or 20.10:
sudo apt install python3-pip python3-psutil python3-nautilus
  • Debian Buster or older / Ubuntu 18.04 or older:
sudo apt install python-pip python-psutil python-nautilus

sudo dnf install python3-pip python3-psutil nautilus-python

Then install Nautilus Terminal for the current user:

  • for Python3 Nautilus bindings (e.g. Ubuntu 20.04 and 20.10, Debian Bullseye and newer, Fedora):
python3 -m pip install --upgrade --user nautilus_terminal
  • for Python2 Nautilus bindings (e.g. Ubuntu 18.04, and Debian Buster and older):
python2 -m pip install --upgrade --user nautilus_terminal

You’ll also want to install Dconf Editor in order to change the Nautilus Terminal settings:

sudo apt install dconf-editor
sudo dnf install dconf-editor

Note that you need to run Nautilus (with the Nautilus Terminal plugin installed) at least once to get the Dconf Editor options for this plugin to be displayed.