Foot
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
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