Skip to content

Commit 5ede47f

Browse files
authored
Merge pull request #665 from fastfetch-cli/dev
Release v2.4.0
2 parents c4824b2 + d84ae91 commit 5ede47f

Some content is hidden

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

73 files changed

+1507
-655
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
name: Bug report
33
about: Create a report to help us improve
4-
title: ''
4+
title: '[BUG] '
55
labels: bug
66
assignees: ''
77

@@ -24,12 +24,9 @@ The content of the configuration file you use (if any)
2424
//paste here
2525
```
2626

27-
Output of `env NO_CONFIG=1 fastfetch --load-config all --show-errors --stat --multithreading false --disable-linewrap false --hide-cursor false`:
27+
Output of `fastfetch -c ci.jsonc --format json`:
2828
<!--
2929
Note that this output will contain you public IP. If it is not relevant for the issue, feel free to remove it before uploading.
30-
31-
If you get the following error: `Error: couldn't find config: [...]`, copy the files in [presets](../../presets/) to `/usr/share/fastfetch/presets/` or `~/.local/share/fastfetch/presets/`.
32-
If this isn't possible (or too much work) for you, post the output of `env NO_CONFIG=1 fastfetch --show-errors --stat --multithreading false --disable-linewrap false --hide-cursor false && fastfetch --version`.
3330
-->
3431

3532
```

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
---
22
name: Feature request
33
about: Suggest an idea for this project
4-
title: ''
4+
title: '[FEAT] '
55
labels: enhancement
66
assignees: ''
77

88
---
99

10+
<!-- Before requesting a new feature, please try `fastfetch -c all.jsonc` to see if it has been supported -->
11+
1012
# Current state:
1113

1214
# Wanted state:
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
---
22
name: Logo request
33
about: Request a new logo
4-
title: ''
4+
title: '[LOGO] '
55
labels: logo request
66
assignees: ''
77

88
---
99

1010
# OS
1111
```
12-
paste content of /etc/os-release here. If this file doesn't exist, describe a way to identify the distro.
12+
Paste content of /etc/os-release here. If this file doesn't exist, describe a way to identify the distro.
1313
```
1414

1515
# Ascii
1616
```
17-
paste ascii art here. If you leave this empty, i will try to find the logo myself.
17+
Paste ascii art here.
1818
```

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,8 @@ jobs:
215215
cmake -DSET_TWEAK=Off -DBUILD_TESTS=On .
216216
cmake --build . --target package --verbose
217217
./fastfetch --list-features
218-
time ./fastfetch -c presets/ci.jsonc
219-
time ./fastfetch -c presets/ci.jsonc --format json
218+
time ./fastfetch
219+
time ./fastfetch --format json
220220
time ./flashfetch
221221
ldd fastfetch
222222
ctest

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@
77
cscope.*
88
tags
99
fastfetch.kdev4
10+
*.user

CHANGELOG.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,29 @@
1+
# 2.4.0
2+
3+
**We are deprecating flags based config files (will be removed in v3.0.0). We suggest you migrate to json based config files.** One may use `-c /path/to/config.conf --gen-config` to migrate existing flag based config files.
4+
5+
Changes:
6+
* All flag based presets are removed
7+
8+
Features:
9+
* Improve performance of detecting rpm and pkg package count (Packages, Linux / FreeBSD)
10+
* Support Apple M3X temperature detection (CPU / GPU, macOS)
11+
* `--ds-force-drm` support a new option `sysfs-only`
12+
* Improve xfce4 version detection
13+
* Detect WM and DE by enumerating running processes (WM / DE, FreeBSD)
14+
* Add a new module `Physical Disk`, which detects product name, full size, serial number and so on.
15+
16+
Bugfixes:
17+
* Fix crashes sometimes when `--logo-padding-top` is not set (Logo)
18+
* Fix memory usage counting algorithm (Memory, macOS)
19+
* Fix the behavior of `--no-buffer` in Windows
20+
* Fix possible segfault in some devices (Display, Linux)
21+
* Fix segfaults on first use of new images with Sixel flag (Image)
22+
23+
Logo:
24+
* Remove unnecessary escaping for Adelie logo
25+
* Add EshanizedOS
26+
127
# 2.3.4
228

329
Bugfixes:

CMakeLists.txt

Lines changed: 8 additions & 2 deletions
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.3.4
4+
VERSION 2.4.0
55
LANGUAGES C
66
DESCRIPTION "Fast neofetch-like system information tool"
77
HOMEPAGE_URL "https://github.com/fastfetch-cli/fastfetch"
@@ -340,6 +340,7 @@ set(LIBFASTFETCH_SRC
340340
src/modules/opengl/opengl.c
341341
src/modules/os/os.c
342342
src/modules/packages/packages.c
343+
src/modules/physicaldisk/physicaldisk.c
343344
src/modules/processes/processes.c
344345
src/modules/player/player.c
345346
src/modules/poweradapter/poweradapter.c
@@ -394,6 +395,7 @@ if(LINUX)
394395
src/detection/cursor/cursor_linux.c
395396
src/detection/bluetooth/bluetooth_linux.c
396397
src/detection/disk/disk_linux.c
398+
src/detection/physicaldisk/physicaldisk_linux.c
397399
src/detection/diskio/diskio_linux.c
398400
src/detection/displayserver/linux/displayserver_linux.c
399401
src/detection/displayserver/linux/drm.c
@@ -453,6 +455,7 @@ elseif(ANDROID)
453455
src/detection/cursor/cursor_nosupport.c
454456
src/detection/cpuusage/cpuusage_linux.c
455457
src/detection/disk/disk_linux.c
458+
src/detection/physicaldisk/physicaldisk_linux.c
456459
src/detection/diskio/diskio_linux.c
457460
src/detection/displayserver/displayserver_android.c
458461
src/detection/font/font_nosupport.c
@@ -506,6 +509,7 @@ elseif(BSD)
506509
src/detection/cpuusage/cpuusage_bsd.c
507510
src/detection/cursor/cursor_linux.c
508511
src/detection/disk/disk_bsd.c
512+
src/detection/physicaldisk/physicaldisk_bsd.c
509513
src/detection/diskio/diskio_bsd.c
510514
src/detection/displayserver/linux/displayserver_linux.c
511515
src/detection/displayserver/linux/drm.c
@@ -529,7 +533,7 @@ elseif(BSD)
529533
src/detection/netio/netio_bsd.c
530534
src/detection/opengl/opengl_linux.c
531535
src/detection/os/os_linux.c
532-
src/detection/packages/packages_linux.c
536+
src/detection/packages/packages_bsd.c
533537
src/detection/poweradapter/poweradapter_nosupport.c
534538
src/detection/processes/processes_bsd.c
535539
src/detection/gtk_qt/qt.c
@@ -566,6 +570,7 @@ elseif(APPLE)
566570
src/detection/cpuusage/cpuusage_apple.c
567571
src/detection/cursor/cursor_apple.m
568572
src/detection/disk/disk_bsd.c
573+
src/detection/physicaldisk/physicaldisk_apple.c
569574
src/detection/diskio/diskio_apple.c
570575
src/detection/displayserver/displayserver_apple.c
571576
src/detection/font/font_apple.m
@@ -619,6 +624,7 @@ elseif(WIN32)
619624
src/detection/cpuusage/cpuusage_windows.c
620625
src/detection/cursor/cursor_windows.c
621626
src/detection/disk/disk_windows.c
627+
src/detection/physicaldisk/physicaldisk_windows.c
622628
src/detection/diskio/diskio_windows.c
623629
src/detection/displayserver/displayserver_windows.c
624630
src/detection/font/font_windows.c

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,3 +89,15 @@ Q: Why do you need a very performant version of neofetch?
8989
9090
Q: It does not display [*] correctly for me, what can I do?
9191
> This is most likely because your system is not implemented (yet). At the moment I am focusing more on making the core app better, than adding more configurations. Feel free to open a pull request if you want to add support for your configuration
92+
93+
## Star History
94+
95+
Give it a star to support us!
96+
97+
<a href="https://star-history.com/#fastfetch-cli/fastfetch&Date">
98+
<picture>
99+
<source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=fastfetch-cli/fastfetch&type=Date&theme=dark" />
100+
<source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=fastfetch-cli/fastfetch&type=Date" />
101+
<img alt="Star History Chart" src="https://api.star-history.com/svg?repos=fastfetch-cli/fastfetch&type=Date" />
102+
</picture>
103+
</a>

doc/json_schema.json

Lines changed: 45 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,8 +251,24 @@
251251
"description": "Set the path to the file containing OS information. Linux only"
252252
},
253253
"dsForceDrm": {
254-
"type": "boolean",
255-
"description": "Force display detection to use `/sys/class/drm`. Linux only",
254+
"description": "Force display detection to use DRM. Linux only",
255+
"oneOf": [
256+
{
257+
"type": "bool",
258+
"const": false,
259+
"description": "Try `wayland`, then `x11`, then `drm`"
260+
},
261+
{
262+
"type": "string",
263+
"description": "Use `/sys/class/drm` only.",
264+
"const": "sysfs-only"
265+
},
266+
{
267+
"type": "bool",
268+
"const": true,
269+
"description": "Try `libdrm` first, then `sysfs` if libdrm failed"
270+
}
271+
],
256272
"default": false
257273
},
258274
"wmiTimeout": {
@@ -584,6 +600,7 @@
584600
"opengl",
585601
"os",
586602
"packages",
603+
"physicaldisk",
587604
"player",
588605
"poweradapter",
589606
"processes",
@@ -1353,6 +1370,32 @@
13531370
}
13541371
}
13551372
},
1373+
{
1374+
"title": "Physical Disk",
1375+
"properties": {
1376+
"type": {
1377+
"description": "Print physical disk information",
1378+
"const": "physicaldisk"
1379+
},
1380+
"namePrefix": {
1381+
"description": "Show disks with given name prefix only",
1382+
"type": "string"
1383+
},
1384+
"key": {
1385+
"$ref": "#/$defs/key"
1386+
},
1387+
"keyColor": {
1388+
"$ref": "#/$defs/keyColor"
1389+
},
1390+
"keyWidth": {
1391+
"$ref": "#/$defs/keyWidth"
1392+
},
1393+
"format": {
1394+
"$ref": "#/$defs/format"
1395+
}
1396+
},
1397+
"additionalProperties": false
1398+
},
13561399
{
13571400
"title": "Public IP",
13581401
"properties": {

presets/all

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)