Cloud Atlas: Discovery
1.1

Contents:

  • Studio
  • Infrastructure
  • DevOps
  • KVM
  • Ceph
  • Gluster
  • oVirt
  • OpenStack
  • Docker
  • Kubernetes
  • Kubernetes Develop
  • Rancher
  • OpenShift
  • SQL
  • SQLite
  • MySQL
  • PostgreSQL
  • NoSQL
  • Network
  • Infra-Service
  • Infra-Search
  • Web
  • Info-Service
  • Big Data
  • Machine Learning
  • Drone
  • Linux
    • 最佳Linux
    • Linux系统管理
    • RedHat Linux
    • Arch Linux
    • Asahi Linux
    • Gentoo Linux
    • LFS(Linux from scratch)
    • BLFS(Beyond Linux from scratch)
    • ALFS(Automated Linux from scratch)
    • PiLFS(Automated Linux from scratch on the Raspberry Pi)
    • Yocto
    • Debian
    • Ubuntu Linux
    • SUSE Linux
    • Kali Linux
    • Tails Linux
    • Qubes OS
    • postmarketOS
    • 容器化操作系统(Container OS)
    • Fedora CoreOS容器操作系统
    • ChromeOS
    • Alpine Linux
    • Subgraph OS
    • KaiOS - 世界第三手机操作系统
    • Linux计算
    • Linux存储
    • Linux网络
    • Linux服务器
    • Linux安全
    • Linux桌面
      • X Window显示服务器协议
      • Linux中文环境
      • Linux远程桌面
      • X持久化远程应用Xpra
      • VNC
      • wayland显示服务器协议
      • sway - i3兼容Wayland compositor
        • sway平铺式窗口管理器简介
        • 树莓派编译安装sway
        • 运行sway窗口管理器
        • 在Gentoo环境安装和使用Sway
        • Sway应用程序
        • 在NVIDIA显卡环境运行Sway
        • Wayland+Sway视频播放
        • sway(Wayland)屏幕共享
        • sway桌面配置MacBook按键
        • foot轻量级终端
        • Wayland环境(sway)截屏
      • Suckless极简桌面
      • xfce
      • LXQt
      • Enlightenment
      • KDE桌面
      • Vim
      • neovim
      • VS Code
      • Linux音频
      • Linux视频
      • 修正xorg显示dpi
      • i3窗口管理器
      • Oh My Zsh
      • tmux多会话终端管理
      • GPU加速终端模拟器alacritty
      • sakura
      • 在Linux环境阅读电子书
      • MuPDF
      • 远程访问Linux桌面
      • Linux轻量级浏览器
      • NetSurf轻量级浏览器
      • Synergy:主机间共享键盘鼠标
      • Linux主机转换成蓝牙键盘鼠标hdiclient
      • Linux终端模拟器
      • uxvrt中文字体设置
      • KeepassXC
    • Linux平板
  • Kernel
  • Performance
  • Distributed System
  • Shell
  • Python
  • Django
  • JavaScript
  • Node.js
  • C
  • Go
  • Swift
  • Rust
  • Ruby
  • Lua
  • ARM
  • Raspberry Pi
  • Android
  • BSD
  • FreeBSD
  • Apple
  • Windows
  • Real
  • Management
  • Life
  • Copyright
  • 关于作者
  • 捐赠
  • 感谢
  • Roadmap
  • 附录
Cloud Atlas: Discovery
  • Linux
  • Linux桌面
  • sway - i3兼容Wayland compositor
  • foot轻量级终端
  • 查看页面源码

foot轻量级终端

foot 是一个快速、轻量级以及简单的 wayland显示服务器协议 终端模拟器,也是 sway - i3兼容Wayland compositor 默认使用的终端。

foot支持CJK,也就是支持中文,但是由于 wayland显示服务器协议 对输入法有特定要求,目前 小企鹅输入法fcitx 在 archlinux Sway图形桌面 上通过安装 sway-im 补丁版本实现中文输入显示框。我的实践也验证 Arch Linux 使用体验较好(sway环境可以非常方便实现 foot 中文输入),而 在Gentoo环境安装和使用Sway 则没有方便的解决方法(至少我还没有成功)。

配置

foot 会加载位于 $XDG_CONFIG_HOME/foot/foot.ini` 配置文件(默认就是 RHOME/.config/foot/foot.ini )。一般是将模板配置文件从 /etc/xdg/foot/foot.ini 复制过来进行修改,修订的配置项会覆盖默认配置而达到修改目标。

终端类型

如果没有配置 foot.init ,那么在默认终端配置实际上就是 TERM=foot ,但是这个终端类型不被很多终端模拟程序支持,例如使用 tmux多会话终端管理 时,就会提示报错:

对于 foot 终端类型,没有得到 tmux多会话终端管理 支持而报错
missing or unsuitable terminal: foot

解决方法就是修订 RHOME/.config/foot/foot.ini :

配置 foot.ini 设置终端类型 xterm-256color
# shell=$SHELL (if set, otherwise user's default shell from /etc/passwd)
# term=foot (or xterm-256color if built with -Dterminfo=disabled)
# login-shell=no
term=xterm-256color

# 默认字体在MacBook Air上太小,我稍微放大一点
# font=monospace:size=8
font=monospace:size=10

这样,再次运行foot就能正确使用 tmux多会话终端管理

备注

上述 foot.ini 配置还设置了终端字体(在 MacBook Air 11" Late 2010 上使用时,默认 8 号字体太纤细难以辨认,所以稍微增大一些)

备注

foot 还支持 Server(daemon) 模式,可以节约运行内存消耗并加快启动速度。但是缺点是一旦某个窗口非常繁忙(例如忙于输出)则会导致所有窗口呆住。

默认 foot 运行是为每个窗口启动一个foot进程(非daemon模式)

参考

  • archlinux wiki: Foot

上一页 下一页

© 版权所有 2018 - now, Huatai Huang。

利用 Sphinx 构建,使用的 主题 由 Read the Docs 开发.

留言和讨论|请我喝一杯咖啡 👈


网站采用 utterances 评论系统,所有评论存储在GitHub issues 中,如果你看不到下方的评论框,那么可能需要自备梯子 👈