
Modernizing the Console with Kmscon
kmscon is split into multiple subpackages, so you have a minimal installation without graphic/font dependencies for servers, and optional packages for more features.
以下正文同步自 Hacker News 最新,版权归原站所有,已转换为易读排版。
kmscon is split into multiple subpackages, so you have a minimal installation without graphic/font dependencies for servers, and optional packages for more features.
The configuration file for kmscon is /etc/kmscon/kmscon.conf you can copy the example with this command: sudo cp /etc/kmscon/kmscon.conf.example /etc/kmscon/kmscon.conf
Here are the most common options to change:
verbose: enable more logs, if you have issues with kmscon. To get the logs, use journalctl -u kmsconvt*
font-engine: defaults to freetype (if available) or unifont (fallback). You can also use pango, or psf (the format used by the kernel fonts)
font-name: The name of the font (for pango, freetype, and psf). As kmscon runs as root, the font must be installed in /usr/share/fonts, not in your home directory. You can find the exact name to use with fc-list. You can install Cascadia fonts, that are good for non-latin languages with sudo dnf install cascadia-fonts-all If you want fancy icons, Nerd fonts are good, but not available in the default Fedora repository. For psf font, font-name is the path to the font file.
font-size: The font height in pixels. By default kmscon tries to scale the font to have about 120×40 characters.
multi-monitor: multi-monitor configuration, the terminal is the same on all monitor. The default is scaled which will scale the font to avoid too much black border. Other options are clone, which will center the terminal on each monitor, and largest which will only use the largest monitor.
dpms-timeout: The timeout (in second) after which the monitor will be turned off. default to 600 (10 minutes). 0 means disabled.
no-mouse: This disable the mouse support. It can be useful to disable touchpad on some laptops.
palette: Change the default color palette for your terminal. You can define each color if none of the provided default palette suits you.
We hope you will enjoy using kmscon in Fedora 45. You may use it occasionally, or use it as your main session for some specific usage, like Veronica Explains for a writerdeck https://www.youtube.com/watch?v=E7vFdy4BEAY.
If you encounter any bugs, have feature ideas, or want to contribute to development, the upstream repository is at https://github.com/kmscon/kmscon.
正文由 探How 从来源站点 RSS 同步,内容未经改写;遇到排版缺失或需要图片、视频时请以原文为准。