Fork me on GitHub

树莓派-neofetch配置

20170904 初成文,配置相关待完善

与Screenfetch相比,neofetch的logo图像非常接近,但是个性化可定制更高,支持信息更多,输出更快。比如logo定制、字体配色等多样玩法。

安装主程序

添加第三方repo,需要根据自己系统实际修改jessie为自己的版本号

1
2
3
4
echo "deb http://dl.bintray.com/dawidd6/neofetch jessie main" | sudo tee -a /etc/apt/sources.list
curl -L "https://bintray.com/user/downloadSubjectPublicKey?username=bintray" -o Release-neofetch.key && sudo apt-key add Release-neofetch.key && rm Release-neofetch.key
sudo aptitude update
sudo aptitude install neofetch

配置

1
sudo nano .config/neofetch/config.conf
  1. 设置显示logo,具体有哪些logo可以看ls /usr/share/neofetch/ascii/distro
1
ascii_distro="auto"
  1. 将需要显示的信息前面的注释符#去掉
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
print_info() {
info title
info underline

info "OS" distro
info "Host" model
info "Kernel" kernel
info "Uptime" uptime
info "Packages" packages
info "Shell" shell
info "Resolution" resolution
info "DE" de
info "WM" wm
info "WM Theme" wm_theme
info "Theme" theme
info "Icons" icons
info "Terminal" term
info "Terminal Font" term_font
info "CPU" cpu
info "GPU" gpu
info "Memory" memory

info "GPU Driver" gpu_driver # Linux only
info "CPU Usage" cpu_usage
info "Disk" disk
info "Battery" battery
info "Font" font
info "Song" song
info "Local IP" local_ip
# info "Public IP" public_ip
info "Users" users
info "Install Date" install_date
info "Locale" locale # This only works on glibc systems.

info line_break
info cols
info line_break
}
  1. 显示磁盘空间信息,注意空格
1
2
disk_show=('/' '/dev/sdb' '/dev/sdc')
disk_subtitle="name"
  1. 更详细信息config里见配置文件注释说明
    避免多次修改config,配合ohmyzsh里的alias更佳。比如
1
2
3
4
5
6
7
8
alias neofetch2="neofetch \
--config off \
--block_range 1 8 \
--bold off \
--uptime_shorthand on \
--gtk_shorthand on \
--colors 4 1 8 8 8 7 \
"
  1. 例图:
    安卓logo

    OpenBSD_small Logo

参考:
github-neofetch-Installation
github-neofetch-custom

相关文章:
-------------本文结束感谢您的阅读-------------
0%