Last active
June 7, 2025 02:43
-
-
Save Silentely/a1773867592cf31479bf8d45713b60d2 to your computer and use it in GitHub Desktop.
ssh登录信息配置文件汉化
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Neofetch 配置文件 | |
| # https://github.com/dylanaraps/neofetch | |
| # 有关更多信息,请参阅此维基页面: | |
| # https://github.com/dylanaraps/neofetch/wiki/Customizing-Info | |
| print_info() { | |
| info title | |
| info underline | |
| info "系统" distro | |
| info "主机" model | |
| info "内核版本" kernel | |
| info "运行时间" uptime | |
| info "软件包" packages | |
| info "Shell" shell | |
| info "分辨率" resolution | |
| info "桌面环境" de | |
| info "窗口管理器" wm | |
| info "窗口管理器主题" wm_theme | |
| info "主题" theme | |
| info "图标" icons | |
| info "终端" term | |
| info "终端字体" term_font | |
| info "CPU" cpu | |
| info "GPU" gpu | |
| info "内存使用" memory | |
| # info "GPU 驱动" gpu_driver # 仅限 Linux/macOS | |
| # info "CPU 使用率" cpu_usage | |
| info "磁盘使用" disk | |
| info "电池" battery | |
| info "字体" font | |
| info "歌曲" song | |
| info "内网IP" local_ip | |
| info "公网IP" public_ip | |
| info "用户" users | |
| info "安装日期" install_date | |
| info "区域设置" locale # 此选项仅适用于 glibc 系统 | |
| info line_break | |
| info cols | |
| info line_break | |
| } | |
| # 内核 | |
| # 缩短内核函数的输出。 | |
| # | |
| # 默认值:'on' | |
| # 可选值:'on', 'off' | |
| # 标志:--kernel_shorthand | |
| # 支持:除 *BSD(PacBSD 和 PC-BSD 除外)之外的所有系统 | |
| # | |
| # 示例: | |
| # on: '4.8.9-1-ARCH' | |
| # off: 'Linux 4.8.9-1-ARCH' | |
| kernel_shorthand="on" | |
| # 发行版 | |
| # 缩短发行版函数的输出 | |
| # | |
| # 默认值:'off' | |
| # 可选值:'on', 'off', 'tiny' | |
| # 标志:--distro_shorthand | |
| # 支持:除 Windows 和 Haiku 之外的所有系统 | |
| distro_shorthand="off" | |
| # 显示/隐藏操作系统架构。 | |
| # 在 'Distro:' 输出中显示 'x86_64', 'x86' 等。 | |
| # | |
| # 默认值:'on' | |
| # 可选值:'on', 'off' | |
| # 标志:--os_arch | |
| # | |
| # 示例: | |
| # on: 'Arch Linux x86_64' | |
| # off: 'Arch Linux' | |
| os_arch="on" | |
| # 运行时间 | |
| # 缩短运行时间函数的输出 | |
| # | |
| # 默认值:'on' | |
| # 可选值:'on', 'off', 'tiny' | |
| # 标志:--uptime_shorthand | |
| # | |
| # 示例: | |
| # on: '2 days, 10 hours, 3 mins' | |
| # off: '2 days, 10 hours, 3 minutes' | |
| # tiny: '2d 10h 3m' | |
| uptime_shorthand="on" | |
| # Shell | |
| # 显示 $SHELL 的路径 | |
| # | |
| # 默认值:'off' | |
| # 可选值:'on', 'off' | |
| # 标志:--shell_path | |
| # | |
| # 示例: | |
| # on: '/bin/bash' | |
| # off: 'bash' | |
| shell_path="off" | |
| # 显示 $SHELL 的版本 | |
| # | |
| # 默认值:'on' | |
| # 可选值:'on', 'off' | |
| # 标志:--shell_version | |
| # | |
| # 示例: | |
| # on: 'bash 4.4.5' | |
| # off: 'bash' | |
| shell_version="on" | |
| # CPU | |
| # CPU 速度类型 | |
| # | |
| # 默认值:'bios_limit' | |
| # 可选值:'scaling_cur_freq', 'scaling_min_freq', 'scaling_max_freq', 'bios_limit' | |
| # 标志:--speed_type | |
| # 支持:带有 'cpufreq' 的 Linux | |
| # 注意:'/sys/devices/system/cpu/cpu0/cpufreq' 中的任何文件都可以用作值。 | |
| speed_type="bios_limit" | |
| # CPU 速度缩写 | |
| # | |
| # 默认值:'off' | |
| # 可选值:'on', 'off' | |
| # 标志:--speed_shorthand | |
| # 注意:此标志不支持 CPU 速度低于 1 GHz 的系统 | |
| # | |
| # 示例: | |
| # on: 'i7-6500U (4) @ 3.1GHz' | |
| # off: 'i7-6500U (4) @ 3.100GHz' | |
| speed_shorthand="off" | |
| # 在输出中启用/禁用 CPU 品牌。 | |
| # | |
| # 默认值:'on' | |
| # 可选值:'on', 'off' | |
| # 标志:--cpu_brand | |
| # | |
| # 示例: | |
| # on: 'Intel i7-6500U' | |
| # off: 'i7-6500U (4)' | |
| cpu_brand="on" | |
| # CPU 速度 | |
| # 隐藏/显示 CPU 速度。 | |
| # | |
| # 默认值:'on' | |
| # 可选值:'on', 'off' | |
| # 标志:--cpu_speed | |
| # | |
| # 示例: | |
| # on: 'Intel i7-6500U (4) @ 3.1GHz' | |
| # off: 'Intel i7-6500U (4)' | |
| cpu_speed="on" | |
| # CPU 核心数 | |
| # 在输出中显示 CPU 核心数 | |
| # | |
| # 默认值:'logical' | |
| # 可选值:'logical', 'physical', 'off' | |
| # 标志:--cpu_cores | |
| # 支持:'physical' 在 BSD 上无效。 | |
| # | |
| # 示例: | |
| # logical: 'Intel i7-6500U (4) @ 3.1GHz' (所有虚拟核心) | |
| # physical: 'Intel i7-6500U (2) @ 3.1GHz' (所有物理核心) | |
| # off: 'Intel i7-6500U @ 3.1GHz' | |
| cpu_cores="logical" | |
| # CPU 温度 | |
| # 隐藏/显示 CPU 温度。 | |
| # 注意:温度会添加到常规的 CPU 函数输出中。 | |
| # | |
| # 默认值:'off' | |
| # 可选值:'C', 'F', 'off' | |
| # 标志:--cpu_temp | |
| # 支持:Linux, BSD | |
| # 注意:对于基于 FreeBSD 和 NetBSD 的系统,您需要启用 | |
| # coretemp 内核模块。这仅支持较新的 Intel 处理器。 | |
| # | |
| # 示例: | |
| # C: 'Intel i7-6500U (4) @ 3.1GHz [27.2°C]' | |
| # F: 'Intel i7-6500U (4) @ 3.1GHz [82.0°F]' | |
| # off: 'Intel i7-6500U (4) @ 3.1GHz' | |
| cpu_temp="off" | |
| # GPU | |
| # 启用/禁用 GPU 品牌 | |
| # | |
| # 默认值:'on' | |
| # 可选值:'on', 'off' | |
| # 标志:--gpu_brand | |
| # | |
| # 示例: | |
| # on: 'AMD HD 7950' | |
| # off: 'HD 7950' | |
| gpu_brand="on" | |
| # 显示哪个 GPU | |
| # | |
| # 默认值:'all' | |
| # 可选值:'all', 'dedicated', 'integrated' | |
| # 标志:--gpu_type | |
| # 支持:Linux | |
| # | |
| # 示例: | |
| # all: | |
| # GPU1: AMD HD 7950 | |
| # GPU2: Intel Integrated Graphics | |
| # | |
| # dedicated: | |
| # GPU1: AMD HD 7950 | |
| # | |
| # integrated: | |
| # GPU1: Intel Integrated Graphics | |
| gpu_type="all" | |
| # 分辨率 | |
| # 在每个监视器旁边显示刷新率 | |
| # 默认值:'off' | |
| # 可选值:'on', 'off' | |
| # 标志:--refresh_rate | |
| # 支持:在 Windows 上无效。 | |
| # | |
| # 示例: | |
| # on: '1920x1080 @ 60Hz' | |
| # off: '1920x1080' | |
| refresh_rate="off" | |
| # Gtk 主题 / 图标 / 字体 | |
| # 缩短 GTK 主题 / 图标 / 字体的输出 | |
| # | |
| # 默认值:'off' | |
| # 可选值:'on', 'off' | |
| # 标志:--gtk_shorthand | |
| # | |
| # 示例: | |
| # on: 'Numix, Adwaita' | |
| # off: 'Numix [GTK2], Adwaita [GTK3]' | |
| gtk_shorthand="off" | |
| # 启用/禁用 gtk2 主题 / 图标 / 字体 | |
| # | |
| # 默认值:'on' | |
| # 可选值:'on', 'off' | |
| # 标志:--gtk2 | |
| # | |
| # 示例: | |
| # on: 'Numix [GTK2], Adwaita [GTK3]' | |
| # off: 'Adwaita [GTK3]' | |
| gtk2="on" | |
| # 启用/禁用 gtk3 主题 / 图标 / 字体 | |
| # | |
| # 默认值:'on' | |
| # 可选值:'on', 'off' | |
| # 标志:--gtk3 | |
| # | |
| # 示例: | |
| # on: 'Numix [GTK2], Adwaita [GTK3]' | |
| # off: 'Numix [GTK2]' | |
| gtk3="on" | |
| # IP 地址 | |
| # 用于 ping 获取公网 IP 的网站 | |
| # | |
| # 默认值:'http://ident.me' | |
| # 可选值:'url' | |
| # 标志:--ip_host | |
| public_ip_host="http://ident.me" | |
| # 磁盘 | |
| # 显示哪些磁盘。 | |
| # 值可以是任何 /dev/sdXX、挂载点或目录。 | |
| # 注意:默认情况下,我们只显示 '/' 的磁盘信息。 | |
| # | |
| # 默认值:'/' | |
| # 可选值:'/', '/dev/sdXX', '/path/to/drive' | |
| # 标志:--disk_show | |
| # | |
| # 示例: | |
| # disk_show=('/' '/dev/sdb1'): | |
| # 'Disk (/): 74G / 118G (66%)' | |
| # 'Disk (/mnt/Videos): 823G / 893G (93%)' | |
| # | |
| # disk_show=('/'): | |
| # 'Disk (/): 74G / 118G (66%)' | |
| # | |
| disk_show=('/') | |
| # 磁盘副标题。 | |
| # 在磁盘副标题后附加什么内容。 | |
| # | |
| # 默认值:'mount' | |
| # 可选值:'mount', 'name', 'dir' | |
| # 标志:--disk_subtitle | |
| # | |
| # 示例: | |
| # name: 'Disk (/dev/sda1): 74G / 118G (66%)' | |
| # 'Disk (/dev/sdb2): 74G / 118G (66%)' | |
| # | |
| # mount: 'Disk (/): 74G / 118G (66%)' | |
| # 'Disk (/mnt/Local Disk): 74G / 118G (66%)' | |
| # 'Disk (/mnt/Videos): 74G / 118G (66%)' | |
| # | |
| # dir: 'Disk (/): 74G / 118G (66%)' | |
| # 'Disk (Local Disk): 74G / 118G (66%)' | |
| # 'Disk (Videos): 74G / 118G (66%)' | |
| disk_subtitle="mount" | |
| # 歌曲 | |
| # 手动指定音乐播放器。 | |
| # | |
| # 默认值:'auto' | |
| # 可选值:'auto', 'player-name' | |
| # 标志:--music_player | |
| # | |
| # 'player-name' 的可用值: | |
| # | |
| # Google Play | |
| # Spotify | |
| # amarok | |
| # audacious | |
| # banshee | |
| # bluemindo | |
| # clementine | |
| # cmus | |
| # deadbeef | |
| # deepin-music | |
| # elisa | |
| # exaile | |
| # gnome-music | |
| # guayadeque | |
| # iTunes$ | |
| # juk | |
| # lollypop | |
| # mocp | |
| # mopidy | |
| # mpd | |
| # pogo | |
| # pragha | |
| # qmmp | |
| # quodlibet | |
| # rhythmbox | |
| # spotify | |
| # tomahawk | |
| # xmms2d | |
| # yarock | |
| music_player="auto" | |
| # 将艺术家和标题分行打印 | |
| # | |
| # 默认值:'off' | |
| # 可选值:'on', 'off' | |
| # 标志:--song_shorthand | |
| # | |
| # 示例: | |
| # on: 'Artist: The Fratellis' | |
| # 'Song: Chelsea Dagger' | |
| # | |
| # off: 'Song: The Fratellis - Chelsea Dagger' | |
| song_shorthand="off" | |
| # 安装日期 | |
| # 是否在输出中显示时间 | |
| # | |
| # 默认值:'on' | |
| # 可选值:'on', 'off' | |
| # 标志:--install_time | |
| # | |
| # 示例: | |
| # on: 'Thu 14 Apr 2016 11:50 PM' | |
| # off: 'Thu 14 Apr 2016' | |
| install_time="on" | |
| # 设置输出中的时间格式 | |
| # | |
| # 默认值:'24h' | |
| # 可选值:'12h', '24h' | |
| # 标志:--install_time_format | |
| # | |
| # 示例: | |
| # 12h: 'Thu 14 Apr 2016 11:50 PM' | |
| # 24h: 'Thu 14 Apr 2016 23:50' | |
| install_time_format="12h" | |
| # 文本颜色 | |
| # 文本颜色 | |
| # | |
| # 默认值:'distro' | |
| # 可选值:'distro', 'num' 'num' 'num' 'num' 'num' 'num' | |
| # 标志:--colors | |
| # | |
| # 每个数字代表文本的不同部分, | |
| # 顺序如下:'title', '@', 'underline', 'subtitle', 'colon', 'info' | |
| # | |
| # 示例: | |
| # colors=(distro) - 文本颜色基于发行版颜色。 | |
| # colors=(4 6 1 8 8 6) - 文本按上述顺序着色。 | |
| colors=(distro) | |
| # 文本选项 | |
| # 切换粗体文本 | |
| # | |
| # 默认值:'on' | |
| # 可选值:'on', 'off' | |
| # 标志:--bold | |
| bold="on" | |
| # 启用/禁用下划线 | |
| # | |
| # 默认值:'on' | |
| # 可选值:'on', 'off' | |
| # 标志:--underline | |
| underline_enabled="on" | |
| # 下划线字符 | |
| # | |
| # 默认值:'-' | |
| # 可选值:'string' | |
| # 标志:--underline_char | |
| underline_char="-" | |
| # 颜色块 | |
| # 颜色块范围 | |
| # 要打印的颜色范围。 | |
| # | |
| # 默认值:'0', '7' | |
| # 可选值:'num' | |
| # 标志:--block_range | |
| # | |
| # 示例: | |
| # | |
| # 在块中显示颜色 0-7。(8 种颜色) | |
| # neofetch --block_range 0 7 | |
| # | |
| # 在块中显示颜色 0-15。(16 种颜色) | |
| # neofetch --block_range 0 15 | |
| block_range=(0 7) | |
| # 切换颜色块 | |
| # | |
| # 默认值:'on' | |
| # 可选值:'on', 'off' | |
| # 标志:--color_blocks | |
| color_blocks="on" | |
| # 颜色块宽度(以空格为单位) | |
| # | |
| # 默认值:'3' | |
| # 可选值:'num' | |
| # 标志:--block_width | |
| block_width=3 | |
| # 颜色块高度(以行为单位) | |
| # | |
| # 默认值:'1' | |
| # 可选值:'num' | |
| # 标志:--block_height | |
| block_height=1 | |
| # 进度条 | |
| # 进度条字符 | |
| # | |
| # 默认值:'-', '=' | |
| # 可选值:'string', 'string' | |
| # 标志:--bar_char | |
| # | |
| # 示例: | |
| # neofetch --bar_char 'elapsed' 'total' | |
| # neofetch --bar_char '-' '=' | |
| bar_char_elapsed="-" | |
| bar_char_total="=" | |
| # 切换进度条边框 | |
| # | |
| # 默认值:'on' | |
| # 可选值:'on', 'off' | |
| # 标志:--bar_border | |
| bar_border="on" | |
| # 进度条长度(以空格为单位) | |
| # 进度条的字符长度。 | |
| # | |
| # 默认值:'15' | |
| # 可选值:'num' | |
| # 标志:--bar_length | |
| bar_length=15 | |
| # 进度条颜色 | |
| # 当设置为 distro 时,使用您的发行版徽标颜色。 | |
| # | |
| # 默认值:'distro', 'distro' | |
| # 可选值:'distro', 'num' | |
| # 标志:--bar_colors | |
| # | |
| # 示例: | |
| # neofetch --bar_colors 3 4 | |
| # neofetch --bar_colors distro 5 | |
| bar_color_elapsed="distro" | |
| bar_color_total="distro" | |
| # 信息显示 | |
| # 用进度条显示信息。 | |
| # | |
| # 默认值:'off' | |
| # 可选值:'bar', 'infobar', 'barinfo', 'off' | |
| # 标志: --cpu_display | |
| # --memory_display | |
| # --battery_display | |
| # --disk_display | |
| # | |
| # 示例: | |
| # bar: '[---=======]' | |
| # infobar: 'info [---=======]' | |
| # barinfo: '[---=======] info' | |
| # off: 'info' | |
| cpu_display="off" | |
| memory_display="off" | |
| battery_display="off" | |
| disk_display="off" | |
| # 后端设置 | |
| # 图像后端。 | |
| # | |
| # 默认值:'ascii' | |
| # 可选值:'ascii', 'caca', 'catimg', 'jp2a', 'iterm2', 'off', 'termpix', 'pixterm', 'tycat', 'w3m' | |
| # 标志:--backend | |
| image_backend="ascii" | |
| # 图像源 | |
| # | |
| # 要显示的图像或 ascii 文件。 | |
| # | |
| # 默认值:'auto' | |
| # 可选值:'auto', 'ascii', 'wallpaper', '/path/to/img', '/path/to/ascii', '/path/to/dir/' | |
| # 标志:--source | |
| # | |
| # 注意:'auto' 会为所使用的任何图像后端选择最佳图像源。 | |
| # 在 ascii 模式下,将使用发行版的 ascii 艺术图;在图像模式下,将使用您的壁纸。 | |
| image_source="auto" | |
| # Ascii 选项 | |
| # Ascii 发行版 | |
| # 显示哪个发行版的 ascii 艺术图。 | |
| # | |
| # 默认值:'auto' | |
| # 可选值:'auto', 'distro_name' | |
| # 标志:--ascii_distro | |
| # | |
| # 注意:Arch 和 Ubuntu 有 'old' 徽标变体。 | |
| # 将其更改为 'arch_old' 或 'ubuntu_old' 以使用旧徽标。 | |
| # 注意:Ubuntu 有风味版本变体。 | |
| # 将其更改为 'Lubuntu', 'Xubuntu', 'Ubuntu-GNOME' 或 'Ubuntu-Budgie' 以使用这些风味版本。 | |
| # 注意:Arch, Crux 和 Gentoo 有一个较小的徽标变体。 | |
| # 将其更改为 'arch_small', 'crux_small' 或 'gentoo_small' 以使用小徽标。 | |
| ascii_distro="auto" | |
| # Ascii 颜色 | |
| # | |
| # 默认值:'distro' | |
| # 可选值:'distro', 'num' 'num' 'num' 'num' 'num' 'num' | |
| # 标志:--ascii_colors | |
| # | |
| # 示例: | |
| # ascii_colors=(distro) - Ascii 根据发行版颜色进行着色。 | |
| # ascii_colors=(4 6 1 8 8 6) - Ascii 使用这些颜色进行着色。 | |
| ascii_colors=(distro) | |
| # 粗体 ascii 徽标 | |
| # 是否将 ascii 徽标加粗。 | |
| # | |
| # 默认值:'on' | |
| # 可选值:'on', 'off' | |
| # 标志:--ascii_bold | |
| ascii_bold="on" | |
| # 图像选项 | |
| # 图像循环 | |
| # 将此设置为 on 将使 neofetch 不断重绘图像,直到 | |
| # 按下 Ctrl+C。这可以修复某些终端模拟器中的显示问题。 | |
| # | |
| # 默认值:'off' | |
| # 可选值:'on', 'off' | |
| # 标志:--loop | |
| image_loop="off" | |
| # 缩略图目录 | |
| # | |
| # 默认值:'~/.cache/thumbnails/neofetch' | |
| # 可选值:'dir' | |
| thumbnail_dir="${XDG_CACHE_HOME:-${HOME}/.cache}/thumbnails/neofetch" | |
| # 裁剪模式 | |
| # | |
| # 默认值:'normal' | |
| # 可选值:'normal', 'fit', 'fill' | |
| # 标志:--crop_mode | |
| # | |
| # 请参阅此维基页面以了解有关 fit 和 fill 选项的信息。 | |
| # https://github.com/dylanaraps/neofetch/wiki/What-is-Waifu-Crop%3F | |
| crop_mode="normal" | |
| # 裁剪偏移 | |
| # 注意:仅影响 'normal' 裁剪模式。 | |
| # | |
| # 默认值:'center' | |
| # 可选值:'northwest', 'north', 'northeast', 'west', 'center' | |
| # 'east', 'southwest', 'south', 'southeast' | |
| # 标志:--crop_offset | |
| crop_offset="center" | |
| # 图像大小 | |
| # 默认情况下,图像是终端宽度的一半。 | |
| # | |
| # 默认值:'auto' | |
| # 可选值:'auto', '00px', '00%', 'none' | |
| # 标志: --image_size | |
| # --size | |
| image_size="auto" | |
| # 图像和文本之间的间隙 | |
| # | |
| # 默认值:'3' | |
| # 可选值:'num', '-num' | |
| # 标志:--gap | |
| gap=3 | |
| # 图像偏移 | |
| # 仅适用于 w3m 后端。 | |
| # | |
| # 默认值:'0' | |
| # 可选值:'px' | |
| # 标志: --xoffset | |
| # --yoffset | |
| yoffset=0 | |
| xoffset=0 | |
| # 图像背景颜色 | |
| # 仅适用于 w3m 后端。 | |
| # | |
| # 默认值:'' | |
| # 可选值:'color', 'blue' | |
| # 标志:--bg_color | |
| background_color= | |
| # Scrot (截图) 选项 | |
| # 是否总是进行截图 | |
| # 您可以使用 "--scrot" 或 "-s" 手动截图 | |
| # | |
| # 默认值:'off' | |
| # 可选值:'on', 'off' | |
| # 标志: --scrot | |
| # -s | |
| scrot="off" | |
| # 截图程序 | |
| # Neofetch 会自动使用您系统上安装的任何截图工具。 | |
| # | |
| # 如果 'neofetch -v' 显示找不到截图工具, | |
| # 或者您正在使用自定义工具,那么您可以将 | |
| # 下面的选项更改为自定义命令。 | |
| # | |
| # 默认值:'auto' | |
| # 可选值:'auto' 'cmd -flags' | |
| # 标志:--scrot_cmd | |
| scrot_cmd="auto" | |
| # 截图文件名 | |
| # 如何命名截图 | |
| # | |
| # 默认值:'neofetch-$(date +%F-%I-%M-%S-${RANDOM}).png' | |
| # 可选值:'string' | |
| # 标志:--scrot_name | |
| scrot_name="neofetch-$(date +%F-%I-%M-%S-${RANDOM}).png" | |
| # 图像上传主机 | |
| # 将图像上传到何处。 | |
| # | |
| # 默认值:'teknik' | |
| # 可选值:'imgur', 'teknik' | |
| # 标志:--image_host | |
| # | |
| # 注意:如果您希望将其他图像主机添加到 Neofetch, | |
| # 请在 github 上提交一个 issue。 | |
| image_host="teknik" | |
| # 其他选项 | |
| # Stdout (标准输出) 模式 | |
| # 关闭所有颜色并禁用图像后端(ASCII/图像)。 | |
| # 适用于通过管道将输出传输到另一个命令。 | |
| # 默认值:'off' | |
| # 可选值:'on', 'off' | |
| stdout="off" | |
| # 配置文件版本。 | |
| # | |
| # 注意:不要更改此值,neofetch 读取此值以确定 | |
| # 如何处理向后兼容性。 | |
| config_version="3.4.0" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
| { | |
| // JSON schema 用于编辑器(如 VS Code)的语法提示和自动补全 | |
| "$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json", | |
| // Logo 全局设置 | |
| "logo": { | |
| "padding": { | |
| "top": 2, | |
| "left": 1 | |
| } | |
| }, | |
| // 全局显示设置 | |
| "display": { | |
| "separator": " -> ", // 键和值之间的分隔符 | |
| "color": { | |
| "keys": "yellow" // 左侧键的颜色 | |
| }, | |
| "showErrors": false, // 不显示检测失败的模块错误 | |
| "key": { | |
| "width": 12 // 设置键的固定宽度,让 -> 对齐 | |
| } | |
| }, | |
| // 要显示的模块列表,按顺序排列 | |
| "modules": [ | |
| // 标题行,显示 user@hostname | |
| { | |
| "type": "title", | |
| "color": { | |
| "user": "green", | |
| "at": "white", | |
| "host": "blue" | |
| } | |
| }, | |
| "separator", // 分隔线 | |
| // --- 系统与软件信息 --- | |
| { | |
| "type": "custom", | |
| "format": "{#keys}{#1}💻 系统与软件{#reset_}" // 自定义标题 | |
| }, | |
| { | |
| "type": "os", | |
| "key": "操作系统" | |
| }, | |
| { | |
| "type": "kernel", | |
| "key": "内核版本" | |
| }, | |
| { | |
| "type": "uptime", | |
| "key": "运行时间" // 用户指定需要 | |
| }, | |
| { | |
| "type": "packages", | |
| "key": "软件包" // 用户指定需要 | |
| }, | |
| { | |
| "type": "shell", | |
| "key": "当前 Shell" | |
| }, | |
| { | |
| "type": "de", | |
| "key": "桌面环境" | |
| }, | |
| { | |
| "type": "wm", | |
| "key": "窗口管理器" | |
| }, | |
| { | |
| "type": "terminal", | |
| "key": "终端" | |
| }, | |
| { | |
| "type": "font", | |
| "key": "系统字体" | |
| }, | |
| "break", // 换行 | |
| // --- 硬件核心 --- | |
| { | |
| "type": "custom", | |
| "format": "{#keys}{#1}🛠️ 硬件核心{#reset_}" | |
| }, | |
| { | |
| "type": "host", | |
| "key": "主机型号" | |
| }, | |
| { | |
| "type": "board", | |
| "key": "主板型号" | |
| }, | |
| { | |
| "type": "cpu", | |
| "key": "中央处理器" | |
| }, | |
| { | |
| "type": "cpuusage", | |
| "key": "CPU 使用率" | |
| }, | |
| { | |
| "type": "gpu", | |
| "key": "图形处理器" | |
| }, | |
| { | |
| "type": "memory", | |
| "key": "内存" | |
| }, | |
| { | |
| "type": "swap", | |
| "key": "交换空间" | |
| }, | |
| { | |
| "type": "disk", | |
| "key": "磁盘空间", | |
| "showHidden": false, | |
| "showSubvolumes": false | |
| }, | |
| "break", // 换行 | |
| // --- 网络状态 --- | |
| { | |
| "type": "custom", | |
| "format": "{#keys}{#1}🌐 网络状态{#reset_}" | |
| }, | |
| { | |
| "type": "localip", | |
| "key": "本地 IP" | |
| }, | |
| { | |
| "type": "publicip", | |
| "key": "公网 IP", | |
| "timeout": 2000 // 获取公网IP的超时时间(毫秒) | |
| }, | |
| { | |
| "type": "wifi", | |
| "key": "无线网络" | |
| }, | |
| // --- 结尾颜色块 --- | |
| "break", | |
| "colors" | |
| ] | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apt update && apt upgrade -y | |
| apt install neofetch -y | |
| 编辑文件 | |
| vim /etc/profile.d/neofetch.sh | |
| 增加以下内容保存 | |
| #/bin/sh | |
| neofetch | |
| 配置文件复制到/root/.config/neofetch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment