Linux command
footclient 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Open a new terminal window
footclient
Open a terminal running
footclient [command]
Open a terminal in
footclient -D [path/to/directory]
Open a terminal with
footclient -T "[My Terminal]"
Connect to a custom socket
footclient --server-socket=[path/to/foot.sock]
Open a maximized terminal
footclient --maximized
Open a fullscreen terminal
footclient --fullscreen
说明
footclient is a client for the foot terminal emulator's server mode. When foot runs as a server (foot --server), footclient connects to it to open new terminal windows. This architecture provides faster startup times and reduced memory usage since fonts, glyph caches, and configuration are shared across all terminal windows. The server listens on a Unix socket, defaulting to $XDG_RUNTIME_DIR/foot-$WAYLAND_DISPLAY.sock. Footclient remains running until the associated terminal window closes, unless --no-wait is specified. Typical usage involves starting foot --server at login (often via systemd socket activation) and using footclient for all subsequent terminal launches.
参数
- -D, --working-directory=_DIR_
- Start terminal in specified directory.
- -T, --title=_TITLE_
- Set initial window title.
- -a, --app-id=_ID_
- Set Wayland app-id (for window manager matching).
- -m, --maximized
- Start window maximized.
- -F, --fullscreen
- Start window in fullscreen mode.
- -s, --server-socket=_PATH_
- Connect to foot server at specified socket path.
- -H, --hold
- Keep terminal open after command exits.
- -N, --no-wait
- Detach from server immediately (don't wait for window close).
- -h, --help
- Display help message.
- -v, --version
- Display version information.
FAQ
What is the footclient command used for?
footclient is a client for the foot terminal emulator's server mode. When foot runs as a server (foot --server), footclient connects to it to open new terminal windows. This architecture provides faster startup times and reduced memory usage since fonts, glyph caches, and configuration are shared across all terminal windows. The server listens on a Unix socket, defaulting to $XDG_RUNTIME_DIR/foot-$WAYLAND_DISPLAY.sock. Footclient remains running until the associated terminal window closes, unless --no-wait is specified. Typical usage involves starting foot --server at login (often via systemd socket activation) and using footclient for all subsequent terminal launches.
How do I run a basic footclient example?
Run `footclient` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -D, --working-directory=_DIR_ do in footclient?
Start terminal in specified directory.