Foot

提供: ArchWiki
2023年1月28日 (土) 03:02時点におけるKgx (トーク | 投稿記録)による版 (英語版から転載)
(差分) ← 古い版 | 最新版 (差分) | 新しい版 → (差分)
ナビゲーションに移動 検索に移動

Foot is a fast, lightweight and minimalistic Wayland terminal emulator.

Installation

Install the foot package or foot-gitAUR for the development version.

Configuration

foot loads configuration file at $XDG_CONFIG_HOME/foot/foot.ini (defaulting to $HOME/.config/foot/foot.ini). A template for the configuration file can be found in /etc/xdg/foot/foot.ini, copy the template to $XDG_CONFIG_HOME/foot/foot.ini and uncomment the setting you want to change. Restart foot to apply the new settings.

Manual page foot.ini(5) provides detailed information on how to configure foot.

Colors

You can customize colors by modifying [color] section.

Themes can be found in /usr/share/foot/themes. To apply a theme, add an include key under [main].

$HOME/.config/foot/foot.ini
[main]
include=/usr/share/foot/themes/name-of-theme

Server (daemon) mode

ノート:
  • Advantages to run foot in server mode including reduced memory footprint and startup time.
  • The downside is a performance penalty; all windows' input and output are multiplexed in the same thread (but each window will have its own set of rendering threads). This means that if one window is very busy with, for example, producing output, then other windows will suffer. Also, should the server process crash, all windows will be gone.

When run normally, foot start a new foot process for each window.

foot can also be run in a server mode. In this mode, one process hosts multiple windows. All Wayland communication, VT parsing and rendering is done in the server process.

New windows are opened by running footclient, which remains running until the terminal window is closed, at which point it exits with the exit value of the client process (typically the shell).

To run foot in server mode, create a unit file for wayland-instance@.target

$HOME/.config/systemd/user/wayland-instance@.target
[Unit]
Description=Services which should run after the graphical session is brought up
Requires=basic.target
After=graphical-session.target

Reload systemd user configuration with a daemon-reload, then enable the foot-server@${WAYLAND_DISPLAY}.service user unit.

Tips and tricks

GNOME

Show borders

Currently, GNOME does not support server side decoration on Wayland. foot running on GNOME will show a plain and flat window. You can configure foot to show borders so that different foot windows can be distinguished more easily.

$HOME/.config/foot/foot.ini
[csd]
border-width=2
border-color=ff404040

Rebind URL mode keys

foot has a URL mode, URLs to be launched, however, its default binding, Ctrl+Shift+u conflicts with Unicode input shortcut of IBus, thus making URL mode inaccessible. You can solve this by bind URL mode to other keys.

$HOME/.config/foot/foot.ini
[key-bindings]
show-urls-launch=Control+Mod1+u