Foot

提供: ArchWiki
2023年1月28日 (土) 03:28時点におけるKgx (トーク | 投稿記録)による版 (一部翻訳)
ナビゲーションに移動 検索に移動

Foot は、高速、軽量、ミニマルな Wayland ターミナル エミュレーターです。

インストール

foot パッケージを インストール して下さい、または開発版の foot-gitAUR

設定

foot$XDG_CONFIG_HOME/foot/foot.ini にある構成ファイルをロードします (デフォルトは $HOME/.config/foot/foot.ini) 構成ファイルのテンプレートは /etc/xdg/foot/foot.ini にあります。テンプレートを $XDG_CONFIG_HOME/foot/foot.ini にコピーし、変更したい設定のコメントを外します。 foot を再起動して、新しい設定を適用します。

マニュアルページ foot.ini(5)foot の設定方法に関する詳細な情報が記載されています。

カラー

[color] セクションを変更することで、色をカスタマイズできます。

テーマは /usr/share/foot/themes にあります。テーマを適用するには、[main] の下に include キーを追加します。

$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