Skip to content

Commit d51de73

Browse files
committed
update Linux
1 parent 1dce756 commit d51de73

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+1304
-13
lines changed

README.md

+49-13
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,43 @@ Fastfetch 是一个类似 [neofetch](https://github.com/dylanaraps/neofetch) 的
66

77
## Installation
88

9-
### Linux
10-
11-
### macOS
12-
13-
#### 安装 Fastfetch
14-
15-
- [HomeBrew](https://formulae.brew.sh/formula/fastfetch#default)
9+
### 安装 Fastfetch
10+
11+
- Ubuntu 22.04+ && Debian 13+
12+
13+
```bash
14+
apt install fastfetch
15+
```
16+
17+
- Arch Linux
18+
```bash
19+
pacman -S fastfetch
20+
```
21+
22+
- FreeBSD
23+
```bash
24+
pkg install fastfetch
25+
```
26+
27+
- Android (Termux)
28+
```bash
29+
pkg install fastfetch
30+
```
31+
32+
33+
- macOS [HomeBrew](https://formulae.brew.sh/formula/fastfetch#default)
1634

1735
````bash
1836
brew install fastfetch
1937
````
2038

21-
- [MacPorts](https://ports.macports.org/port/fastfetch/)
39+
- macOS [MacPorts](https://ports.macports.org/port/fastfetch/)
2240

2341
````bash
2442
sudo port install fastfetch
2543
````
2644

27-
#### 安装 [pokemon-colorscripts](https://gitlab.com/phoneybadger/pokemon-colorscripts)
45+
### 安装 [pokemon-colorscripts](https://gitlab.com/phoneybadger/pokemon-colorscripts)
2846

2947
克隆或下载存储库:
3048

@@ -45,16 +63,36 @@ sudo ./install.sh
4563
pokemon-colorscripts -r --no-title
4664
```
4765

48-
#### 字体安装
66+
### 字体安装
4967

5068
为了终端下的字体图标正常显示,建议大家下载一些自带字体图标的字体,可以去 [Nerd Fonts - Iconic font aggregator, glyphs/icons collection, & fonts patcher](https://www.nerdfonts.com/font-downloads) 下载自己喜欢的字体。
5169

5270
国光我在 macOS 下测试 [0xProtoNerdFont](https://github.com/ryanoasis/nerd-fonts/releases/download/v3.2.1/0xProto.zip) 字体是可以正常显示图标的。
5371

54-
#### 导入预设
72+
### 导入预设
5573

5674
接着了手动去 [![GitHub release (with filter)](https://img.shields.io/github/v/release/sqlsec/fastfetch?logo=github)](https://github.com/sqlsec/fastfetch/releases) 下载对应的系统的预设方案,解压将其放到用户 home 下的 `.config` 目录下即可:
5775

76+
#### Linux
77+
78+
```bash
79+
# 备份原有的配置文件
80+
mv $HOME/.config/fastfetch $HOME/.config/fastfetch.bak
81+
82+
# 进入 .config 目录
83+
cd $HOME/.config
84+
85+
# 下载并解压然后删除
86+
wget https://github.com/sqlsec/fastfetch/releases/download/v0.1/fastfetch-for-Linux.zip
87+
unzip fastfetch-for-Linux.zip && rm fastfetch-for-Linux.zip
88+
```
89+
90+
不同的 `.jsonc` 就是不同的预设方案,如果启用的话,将其重命名为 `config.jsonc` 即可切换为默认的预设方案:
91+
92+
93+
94+
#### macOS
95+
5896
```bash
5997
# 进入 .config 目录
6098
cd $HOME/.config
@@ -64,8 +102,6 @@ wget https://github.com/sqlsec/fastfetch/releases/download/v0.1/fastfetch-for-ma
64102
unzip fastfetch-for-macOS.zip && rm fastfetch-for-macOS.zip
65103
```
66104

67-
#### 更换预设
68-
69105
不同的 `.jsonc` 就是不同的预设方案,如果启用的话,将其重命名为 `config.jsonc` 即可切换为默认的预设方案:
70106

71107
- **config-macos-logo.jsonc**

fastfetch/animal/bear-1.jpg

57.6 KB
Loading

fastfetch/animal/bear-2.jpg

52.7 KB
Loading

fastfetch/animal/cat-1.jpg

39 KB
Loading

fastfetch/animal/cat-2.jpg

49.8 KB
Loading

fastfetch/animal/cayman.jpg

51.9 KB
Loading

fastfetch/animal/chicken.jpg

55.9 KB
Loading

fastfetch/animal/cow-1.jpg

62.7 KB
Loading

fastfetch/animal/cow-2.jpg

55.8 KB
Loading

fastfetch/animal/dog.jpg

48.8 KB
Loading

fastfetch/animal/duck-1.jpg

48.8 KB
Loading

fastfetch/animal/duck-2.jpg

38.7 KB
Loading

fastfetch/animal/eagle.jpg

49 KB
Loading

fastfetch/animal/hamster.jpg

49.5 KB
Loading

fastfetch/animal/horse.jpg

46.8 KB
Loading

fastfetch/animal/monkey.jpg

285 KB
Loading

fastfetch/animal/mouse.jpg

42.9 KB
Loading

fastfetch/animal/otter.jpg

54.8 KB
Loading

fastfetch/animal/panda.jpg

46.2 KB
Loading

fastfetch/animal/pig.jpg

44.7 KB
Loading

fastfetch/animal/qq-1.jpg

38.9 KB
Loading

fastfetch/animal/qq-2.jpg

39.7 KB
Loading

fastfetch/animal/qq-3.jpg

40.8 KB
Loading

fastfetch/animal/rabbit.jpg

46.2 KB
Loading

fastfetch/animal/sheep-1.jpg

49.6 KB
Loading

fastfetch/animal/sheep-2.jpg

45.4 KB
Loading

fastfetch/animal/tiger.jpg

58.6 KB
Loading

fastfetch/anime/aisaka.png

625 KB
Loading

fastfetch/anime/archgirl.png

666 KB
Loading

fastfetch/anime/fufu.png

1.81 MB
Loading

fastfetch/anime/goku.png

1.19 MB
Loading

fastfetch/anime/loli.png

434 KB
Loading

fastfetch/anime/pochita.png

114 KB
Loading

fastfetch/anime/ryuzaki.png

357 KB
Loading

fastfetch/arch/arch.png

10.4 KB
Loading

fastfetch/arch/hyde.png

174 KB
Loading

fastfetch/arch/trans_arch.png

44.6 KB
Loading

fastfetch/config -linux-animal.jsonc

+126
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,126 @@
1+
{
2+
"$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json",
3+
"logo": {
4+
"type": "kitty",
5+
"source": "$(find \"${XDG_CONFIG_HOME:-$HOME/.config}/fastfetch/animal/\" -name \"*.jpg\" | sort -R | head -1)",
6+
"height": 18,
7+
"padding" : {
8+
"top": 3
9+
}
10+
},
11+
"display": {
12+
"separator": " : "
13+
},
14+
"modules": [
15+
{
16+
"type": "custom",
17+
"format": "\u001b[36m  OS Info"
18+
},
19+
{
20+
"type": "custom",
21+
"format": "┌────────────────────────────────────────────────────────┐"
22+
},
23+
{
24+
"type": "os",
25+
"key": "  OS",
26+
"keyColor": "red"
27+
},
28+
{
29+
"type": "kernel",
30+
"key": "  Kernel",
31+
"keyColor": "red"
32+
},
33+
{
34+
"type": "packages",
35+
"key": " 󰏗 Packages",
36+
"keyColor": "green"
37+
},
38+
{
39+
"type": "display",
40+
"key": "  Display",
41+
"keyColor": "green"
42+
},
43+
{
44+
"type": "wm",
45+
"key": "  WM",
46+
"format": "{2}",
47+
"keyColor": "yellow"
48+
},
49+
{
50+
"type": "terminalfont",
51+
"key": "  Font",
52+
"keyColor": "yellow"
53+
},
54+
{
55+
"type": "terminal",
56+
"key": "  Terminal",
57+
"format": "{1}",
58+
"keyColor": "yellow"
59+
},
60+
61+
{
62+
"type": "custom",
63+
"format": "└────────────────────────────────────────────────────────┘"
64+
},
65+
"break",
66+
{
67+
"type": "title",
68+
"key": ""
69+
},
70+
{
71+
"type": "custom",
72+
"format": "┌────────────────────────────────────────────────────────┐"
73+
},
74+
{
75+
"type": "cpu",
76+
"format": "{1}",
77+
"key": "  CPU",
78+
"keyColor": "blue"
79+
},
80+
{
81+
"type": "gpu",
82+
"format": "{1} {2} {12} Ghz",
83+
"key": " 󰋵 GPU",
84+
"keyColor": "blue"
85+
},
86+
{
87+
"type": "shell",
88+
"format": "{1} {4}",
89+
"key": " 󰘳 Shell",
90+
"keyColor": "magenta"
91+
},
92+
{
93+
"type": "memory",
94+
"key": " 󰀚 Memory",
95+
"keyColor": "magenta"
96+
},
97+
{
98+
"type": "command",
99+
"key": " 󱦟 OS Age ",
100+
"keyColor": "31",
101+
"text": "birth_install=$(stat -c %W /); current=$(date +%s); time_progression=$((current - birth_install)); days_difference=$((time_progression / 86400)); echo $days_difference days"
102+
},
103+
{
104+
"type": "uptime",
105+
"key": " 󱫐 Uptime ",
106+
"keyColor": "red"
107+
},
108+
{
109+
"type": "host",
110+
"key": "  Machine",
111+
"format": "{name}{?vendor} ({vendor}){?}",
112+
"keyColor": "red"
113+
},
114+
{
115+
"type": "custom",
116+
"format": "└────────────────────────────────────────────────────────┘"
117+
},
118+
{
119+
"type": "colors",
120+
"paddingLeft": 2,
121+
"symbol": "circle"
122+
},
123+
"break"
124+
125+
]
126+
}

fastfetch/config-linux-anime.jsonc

+126
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,126 @@
1+
{
2+
"$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json",
3+
"logo": {
4+
"type": "kitty",
5+
"source": "$(find \"${XDG_CONFIG_HOME:-$HOME/.config}/fastfetch/anime/\" -name \"*.png\" | sort -R | head -1)",
6+
"height": 18,
7+
"padding" : {
8+
"top": 3
9+
}
10+
},
11+
"display": {
12+
"separator": " : "
13+
},
14+
"modules": [
15+
{
16+
"type": "custom",
17+
"format": "\u001b[36m  OS Info"
18+
},
19+
{
20+
"type": "custom",
21+
"format": "┌────────────────────────────────────────────────────────┐"
22+
},
23+
{
24+
"type": "os",
25+
"key": " 󰰖 OS",
26+
"keyColor": "red"
27+
},
28+
{
29+
"type": "kernel",
30+
"key": "  Kernel",
31+
"keyColor": "red"
32+
},
33+
{
34+
"type": "packages",
35+
"key": " 󰏗 Packages",
36+
"keyColor": "green"
37+
},
38+
{
39+
"type": "display",
40+
"key": "  Display",
41+
"keyColor": "green"
42+
},
43+
{
44+
"type": "wm",
45+
"key": "  WM",
46+
"format": "{2}",
47+
"keyColor": "yellow"
48+
},
49+
{
50+
"type": "terminalfont",
51+
"key": "  Font",
52+
"keyColor": "yellow"
53+
},
54+
{
55+
"type": "terminal",
56+
"key": "  Terminal",
57+
"format": "{1}",
58+
"keyColor": "yellow"
59+
},
60+
61+
{
62+
"type": "custom",
63+
"format": "└────────────────────────────────────────────────────────┘"
64+
},
65+
"break",
66+
{
67+
"type": "title",
68+
"key": ""
69+
},
70+
{
71+
"type": "custom",
72+
"format": "┌────────────────────────────────────────────────────────┐"
73+
},
74+
{
75+
"type": "cpu",
76+
"format": "{1}",
77+
"key": "  CPU",
78+
"keyColor": "blue"
79+
},
80+
{
81+
"type": "gpu",
82+
"format": "{1} {2} {12} Ghz",
83+
"key": " 󰋵 GPU",
84+
"keyColor": "blue"
85+
},
86+
{
87+
"type": "shell",
88+
"format": "{1} {4}",
89+
"key": " 󰘳 Shell",
90+
"keyColor": "magenta"
91+
},
92+
{
93+
"type": "memory",
94+
"key": " 󰀚 Memory",
95+
"keyColor": "magenta"
96+
},
97+
{
98+
"type": "command",
99+
"key": " 󱦟 OS Age ",
100+
"keyColor": "31",
101+
"text": "birth_install=$(stat -c %W /); current=$(date +%s); time_progression=$((current - birth_install)); days_difference=$((time_progression / 86400)); echo $days_difference days"
102+
},
103+
{
104+
"type": "uptime",
105+
"key": " 󱫐 Uptime ",
106+
"keyColor": "red"
107+
},
108+
{
109+
"type": "host",
110+
"key": " 󰢚 Machine",
111+
"format": "{name}{?vendor} ({vendor}){?}",
112+
"keyColor": "red"
113+
},
114+
{
115+
"type": "custom",
116+
"format": "└────────────────────────────────────────────────────────┘"
117+
},
118+
{
119+
"type": "colors",
120+
"paddingLeft": 2,
121+
"symbol": "circle"
122+
},
123+
"break"
124+
125+
]
126+
}

0 commit comments

Comments
 (0)