Skip to content

Commit 8e5017a

Browse files
authored
Merge pull request #1123 from fastfetch-cli/dev
Release: v2.20.0
2 parents fa5a74c + dc89336 commit 8e5017a

File tree

108 files changed

+1016
-788
lines changed

Some content is hidden

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

108 files changed

+1016
-788
lines changed

CHANGELOG.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,32 @@
1+
# 2.20.0
2+
3+
This release fixes regression of `2.19.0` on M1 MacBook Air. It also introduces a new option `--key-type icon` to display predefined icons in keys (requires newest nerd font). See `fastfetch -h key-type` for detail.
4+
5+
Changes:
6+
* JSON option `display.keyWidth` has been renamed to `display.key.width`
7+
* Previously: `{ "display": { "keyWidth": 3 } }`
8+
* Now: `{ "display": { "key": { "width": 3 } } }`
9+
* Windows Terminal font detection **in WSL** has been removed due to [issue #1113](https://github.com/fastfetch/fastfetch/issues/1113)
10+
11+
Features:
12+
* Add option `display.key.type: <enum>` to print icons in keys
13+
* Supported value `string`, `icon` and `both`. Default to `string` (don't display icons)
14+
* Example: `{ "display": { "key": { "type": "icon" } } }`
15+
* Add option `display.key.paddingLeft: <num>` to print left padding (whitespaces) in keys
16+
* Example: `{ "display": { "key": { "paddingLeft": 2 } } }`
17+
* Add option `modules.keyIcon` to set icon for specified module
18+
* Example: `{ "modules": { "type": "command", "keyIcon": "🔑" } }`
19+
* Report system mono font name for Terminator if used (TerminalFont, Linux)
20+
* Don't require logo height to be set when using `--logo-position right`
21+
* Report Snapdragon SOC marketing name for newer Android phones (CPU, Android)
22+
* Detect MTK SOC part name (CPU, Android)
23+
24+
Bugfixes:
25+
* Don't wake up suspended GPUs when using `--ds-force-drm` (Display, Linux)
26+
* Fix printing editor type in JSON result (Editor)
27+
* Fix `--logo-padding-*` not working correctly (#1121, Logo)
28+
* Fix possible segfault when detecting GPU frequency (#1121, macOS, GPU)
29+
130
# 2.19.1
231

332
Bugfixes

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
cmake_minimum_required(VERSION 3.12.0) # target_link_libraries with OBJECT libs & project homepage url
22

33
project(fastfetch
4-
VERSION 2.19.1
4+
VERSION 2.20.0
55
LANGUAGES C
66
DESCRIPTION "Fast neofetch-like system information tool"
77
HOMEPAGE_URL "https://github.com/fastfetch-cli/fastfetch"

debian/changelog

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
fastfetch (2.19.1) jammy; urgency=medium
2+
3+
* Update to 2.19.1
4+
5+
-- Carter Li <[email protected]> Tue, 23 Jul 2024 10:25:14 +0800
6+
7+
fastfetch (2.19.0) jammy; urgency=medium
8+
9+
* Update to 2.19.0
10+
11+
-- Carter Li <[email protected]> Mon, 22 Jul 2024 14:17:55 +0800
12+
113
fastfetch (2.18.1) jammy; urgency=medium
214

315
* Update to 2.18.1

debian/files

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
fastfetch_2.18.1_source.buildinfo universe/utils optional
1+
fastfetch_2.19.1_source.buildinfo universe/utils optional

doc/json_schema.json

Lines changed: 186 additions & 65 deletions
Large diffs are not rendered by default.

presets/archey.jsonc

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,20 @@
44
{
55
"type": "title",
66
"key": "User",
7-
"format": "{1}"
7+
"format": "{user-name}"
88
},
99
{
1010
"type": "title",
1111
"key": "Hostname",
12-
"format": "{2}"
12+
"format": "{host-name}"
1313
},
1414
{
1515
"type": "host",
1616
"key": "Model"
1717
},
1818
{
1919
"type": "os",
20-
"format": "{3} {9} {12}"
20+
"format": "{pretty-name} {version-id} {arch}"
2121
},
2222
"kernel",
2323
"uptime",
@@ -34,32 +34,29 @@
3434
"type": "de",
3535
"key": "Desktop Environment"
3636
},
37-
{
38-
"type": "shell",
39-
"format": "{7}"
40-
},
37+
"shell",
4138
{
4239
"type": "terminal",
43-
"format": "{5} {6} {#37}█{#97}█ {#36}█{#96}█ {#35}█{#95}█ {#34}█{#94}█ {#33}█{#93}█ {#32}█{#92}█ {#31}█{#91}█ {#30}█{#90}█"
40+
"format": "{pretty-name} {version} {#37}█{#97}█ {#36}█{#96}█ {#35}█{#95}█ {#34}█{#94}█ {#33}█{#93}█ {#32}█{#92}█ {#31}█{#91}█ {#30}█{#90}█"
4441
},
4542
{
4643
"type": "packages",
47-
"format": "{1}"
44+
"format": "{all}"
4845
},
4946
{
5047
"type": "cpu",
5148
"key": "Temperature",
5249
"temp": true,
53-
"format": "{8}"
50+
"format": "{temperature}"
5451
},
5552
{
5653
"type": "cpu",
5754
"key": "CPU",
58-
"format": "{4} x {1}"
55+
"format": "{cores-logical} x {name}"
5956
},
6057
{
6158
"type": "gpu",
62-
"format": "{2}"
59+
"format": "{name}"
6360
},
6461
{
6562
"type": "memory",

presets/btw.jsonc

Lines changed: 0 additions & 42 deletions
This file was deleted.

presets/examples/10.jsonc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
},
4141
{
4242
"type": "os",
43-
"key": " OS",
43+
"key": "{icon} OS",
4444
"keyColor": "yellow"
4545
},
4646
{

presets/examples/12.jsonc

Lines changed: 22 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,20 @@
66
"display": {
77
"separator": "-> ",
88
"color": {
9-
"separator": "1"
9+
"separator": "1" // Bold
1010
},
1111
"constants": [
12-
"─────────────────────────────"
13-
]
12+
"───────────────────────────"
13+
],
14+
"key": {
15+
"type": "both",
16+
"paddingLeft": 4
17+
}
1418
},
1519
"modules": [
1620
{
1721
"type": "title",
18-
"format": " {6}{7}{8}"
22+
"format": " {user-name-colored}{at-symbol-colored}{host-name-colored}"
1923
},
2024
"break",
2125
{
@@ -24,74 +28,74 @@
2428
},
2529
"break",
2630
{
27-
"key": "OS ",
31+
"key": "OS ",
2832
"keyColor": "red",
2933
"type": "os"
3034
},
3135
{
32-
"key": " 󰌢 Machine ",
36+
"key": "Machine ",
3337
"keyColor": "green",
3438
"type": "host"
3539
},
3640
{
37-
"key": "Kernel ",
41+
"key": "Kernel ",
3842
"keyColor": "magenta",
3943
"type": "kernel"
4044
},
4145
{
42-
"key": " 󰅐 Uptime ",
46+
"key": "Uptime ",
4347
"keyColor": "red",
4448
"type": "uptime"
4549
},
4650
{
47-
"key": " 󰍹 Resolution ",
51+
"key": "Resolution ",
4852
"keyColor": "yellow",
4953
"type": "display",
5054
"compactType": "original-with-refresh-rate"
5155
},
5256
{
53-
"key": "WM ",
57+
"key": "WM ",
5458
"keyColor": "blue",
5559
"type": "wm"
5660
},
5761
{
58-
"key": "DE ",
62+
"key": "DE ",
5963
"keyColor": "green",
6064
"type": "de"
6165
},
6266
{
63-
"key": "Shell ",
67+
"key": "Shell ",
6468
"keyColor": "cyan",
6569
"type": "shell"
6670
},
6771
{
68-
"key": "Terminal ",
72+
"key": "Terminal ",
6973
"keyColor": "red",
7074
"type": "terminal"
7175
},
7276
{
73-
"key": " 󰻠 CPU ",
77+
"key": "CPU ",
7478
"keyColor": "yellow",
7579
"type": "cpu"
7680
},
7781
{
78-
"key": " 󰍛 GPU ",
82+
"key": "GPU ",
7983
"keyColor": "blue",
8084
"type": "gpu"
8185
},
8286
{
83-
"key": " 󰑭 Memory ",
87+
"key": "Memory ",
8488
"keyColor": "magenta",
8589
"type": "memory"
8690
},
8791
{
88-
"key": " 󰩟 Local IP ",
92+
"key": "Local IP ",
8993
"keyColor": "red",
9094
"type": "localip",
9195
"compact": true
9296
},
9397
{
94-
"key": " 󰩠 Public IP ",
98+
"key": "Public IP ",
9599
"keyColor": "cyan",
96100
"type": "publicip"
97101
},

presets/examples/13.jsonc

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
88
}
99
},
1010
"display": {
11-
"separator": "",
12-
"keyWidth": 15
11+
"separator": " "
1312
},
1413
"modules": [
1514
{
@@ -19,19 +18,19 @@
1918
{
2019
"key": "│ {#31} user {#keys}│",
2120
"type": "title",
22-
"format": "{1}"
21+
"format": "{user-name}"
2322
},
2423
{
2524
"key": "│ {#32}󰇅 hname {#keys}│",
2625
"type": "title",
27-
"format": "{2}"
26+
"format": "{host-name}"
2827
},
2928
{
3029
"key": "│ {#33}󰅐 uptime {#keys}│",
3130
"type": "uptime"
3231
},
3332
{
34-
"key": "│ {#34}󰟾 distro {#keys}│",
33+
"key": "│ {#34}{icon} distro {#keys}│",
3534
"type": "os"
3635
},
3736
{
@@ -67,7 +66,7 @@
6766
{
6867
"key": "│ {#36}󰩟 network {#keys}│",
6968
"type": "localip",
70-
"format": "{1} ({4})"
69+
"format": "{ipv4} ({ifname})"
7170
},
7271
{
7372
"key": "├───────────┤",

presets/examples/14.jsonc

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,22 @@
66
},
77
"display": {
88
"separator": "",
9-
"keyWidth": 12
9+
"key": {
10+
"width": 15
11+
}
1012
},
1113
"modules": [
1214
{
1315
// draw borders first to make colors of left and right border consistant
1416
"key": " user",
1517
"type": "title",
16-
"format": "{1}",
18+
"format": "{user-name}",
1719
"keyColor": "31"
1820
},
1921
{
2022
"key": "󰇅 hname",
2123
"type": "title",
22-
"format": "{2}",
24+
"format": "{host-name}",
2325
"keyColor": "32"
2426

2527
},
@@ -29,7 +31,7 @@
2931
"keyColor": "33"
3032
},
3133
{
32-
"key": "󰟾 distro",
34+
"key": "{icon} distro",
3335
"type": "os",
3436
"keyColor": "34"
3537
},
@@ -73,7 +75,7 @@
7375
{
7476
"key": "󰩟 network",
7577
"type": "localip",
76-
"format": "{1} ({4})",
78+
"format": "{ipv4} ({ifname})",
7779
"keyColor": "36"
7880
},
7981
{

0 commit comments

Comments
 (0)