Skip to content

Commit 18d5301

Browse files
authored
Merge pull request #1353 from fastfetch-cli/dev
Release: v2.28.0
2 parents 4059bca + 4d235a9 commit 18d5301

File tree

179 files changed

+1939
-962
lines changed

Some content is hidden

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

179 files changed

+1939
-962
lines changed

.codespellrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
check-filenames =
33
builtin = clear,rare,usage,informal
44
skip = */.git,*/cmake-build-*,*/.idea,*/completions,*/presets,*/screenshots,*/tests,*/3rdparty,*/logo/ascii
5-
ignore-words-list = iterm,compiletime,unknwn,pengwin,siduction,master,slave,sur,doas,conexant
5+
ignore-words-list = iterm,compiletime,unknwn,pengwin,siduction,master,slave,sur,doas,conexant,ags

.github/workflows/ci.yml

Lines changed: 4 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -272,47 +272,6 @@ jobs:
272272
name: fastfetch-musl-amd64
273273
path: ./fastfetch-*.*
274274

275-
musl-aarch64:
276-
name: Musl-aarch64
277-
runs-on: ubuntu-latest
278-
steps:
279-
- uses: actions/checkout@v4
280-
281-
- name: setup alpine linux
282-
uses: jirutka/setup-alpine@master
283-
with:
284-
branch: v3.19
285-
arch: aarch64
286-
287-
- name: install dependencies
288-
run: |
289-
cat /etc/alpine-release
290-
uname -a
291-
apk add cmake samurai vulkan-loader-dev libxcb-dev wayland-dev libdrm-dev dconf-dev imagemagick-dev chafa-dev zlib-dev dbus-dev mesa-dev opencl-dev xfconf-dev sqlite-dev networkmanager-dev pulseaudio-dev ddcutil-dev elfutils-dev gcc g++
292-
shell: alpine.sh --root {0}
293-
294-
- name: build
295-
run: |
296-
cmake -DSET_TWEAK=Off -DBUILD_TESTS=On -DCMAKE_INSTALL_PREFIX=/usr -DIS_MUSL=ON -GNinja .
297-
cmake --build . --target package --verbose -j4
298-
shell: alpine.sh {0}
299-
300-
- name: run
301-
run: |
302-
./fastfetch --list-features
303-
time ./fastfetch -c presets/ci.jsonc --stat false
304-
time ./fastfetch -c presets/ci.jsonc --format json
305-
time ./flashfetch
306-
ldd fastfetch
307-
ctest
308-
shell: alpine.sh {0}
309-
310-
- name: upload artifacts
311-
uses: actions/upload-artifact@v4
312-
with:
313-
name: fastfetch-musl-aarch64
314-
path: ./fastfetch-*.*
315-
316275
macos-universal:
317276
name: macOS-universal
318277
runs-on: macos-12
@@ -555,9 +514,9 @@ jobs:
555514
- name: setup-msys2
556515
uses: msys2/setup-msys2@v2
557516
with:
558-
msystem: CLANG32
517+
msystem: MINGW32
559518
update: true
560-
install: git p7zip mingw-w64-clang-i686-cmake mingw-w64-clang-i686-clang mingw-w64-clang-i686-vulkan-loader mingw-w64-clang-i686-vulkan-headers mingw-w64-clang-i686-opencl-icd mingw-w64-clang-i686-opencl-headers
519+
install: git p7zip mingw-w64-i686-cmake mingw-w64-i686-clang mingw-w64-i686-vulkan-loader mingw-w64-i686-vulkan-headers mingw-w64-i686-opencl-icd mingw-w64-i686-opencl-headers
561520

562521
- name: print msys version
563522
run: uname -a
@@ -568,7 +527,7 @@ jobs:
568527
languages: c, cpp
569528

570529
- name: configure project
571-
run: env PKG_CONFIG_PATH=/clang32/lib/pkgconfig/:$PKG_CONFIG_PATH cmake -DSET_TWEAK=Off -DBUILD_TESTS=On .
530+
run: env PKG_CONFIG_PATH=/mingw32/lib/pkgconfig/:$PKG_CONFIG_PATH cmake -DSET_TWEAK=Off -DBUILD_TESTS=On .
572531

573532
- name: build project
574533
run: cmake --build . --verbose -j4
@@ -577,7 +536,7 @@ jobs:
577536
uses: github/codeql-action/analyze@v3
578537

579538
- name: copy necessary dlls
580-
run: cp /clang32/bin/{OpenCL,vulkan-1}.dll .
539+
run: cp /mingw32/bin/{OpenCL,vulkan-1}.dll .
581540

582541
- name: download amd_ags
583542
run: curl -LO https://github.com/GPUOpen-LibrariesAndSDKs/AGS_SDK/raw/master/ags_lib/lib/amd_ags_x86.dll
@@ -619,7 +578,6 @@ jobs:
619578
- linux-armv7
620579
- linux-riscv64
621580
- musl-amd64
622-
- musl-aarch64
623581
- macos-universal
624582
- freebsd-amd64
625583
- openbsd-amd64

CHANGELOG.md

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,24 @@
1+
# 2.28.0
2+
3+
Features:
4+
* Add new module `Mouse` and `Keyboard` which display connected mice and keyboards
5+
* Support remaining time detection (Battery)
6+
* Report if AC is connected (Battery, Linux)
7+
* Report platform API used for display detection for debugging (Display)
8+
* Report Wine version when running in Wine (Kernel, Windows)
9+
* Add option `waitTime` in modules `CPUUsage`, `DiskIO` and `NetIO`
10+
11+
Bugfixes:
12+
* Fix used memory size detection (Memory, OpenBSD)
13+
* Don't report invalid fragmentation percentage when fails to detect it (Zpool)
14+
* Fix unexpected errors when running fastfetch in parallel (#1346, Windows)
15+
* Don't report obviously invalid temperature values (PhysicalDisk, Linux)
16+
17+
Logos:
18+
* Add eweOS
19+
* Add MidOS
20+
* Update XeroArch
21+
122
# 2.27.1
223

324
Bugfixes:
@@ -8,7 +29,7 @@ Bugfixes:
829
Changes:
930
* We now print `"` instead of `` when displaying diagonal length in inches, so that the character can be correctly displayed in Linux console (Display)
1031
* All detection code of `monitor` module is merged into `display` module. Now `monitor` just prints the same information as `display` with different format. Notably:
11-
* The resolution reported by `monitor` module is now current resolution instead of native / maximum resolution. PPI is calcuated based on current resolution too.
32+
* The resolution reported by `monitor` module is now current resolution instead of native / maximum resolution. PPI is calculated based on current resolution too.
1233
* The refresh rate reported by `monitor` module is the current refresh rate.
1334

1435
Features:
@@ -24,7 +45,7 @@ Bugfixes:
2445
* Remove trailing newline in GPU name for Raspberry pi (#1303, GPU, Linux)
2546
* Fix a possible buffer overflow (GPU, Linux)
2647
* Fix CPU temp incorrectly reported as 0 celsius (#1308, CPU, Linux)
27-
* Corrently report `TPM device is not found` error (#1314, TPM, Windows)
48+
* Correctly report `TPM device is not found` error (#1314, TPM, Windows)
2849
* Fix errors when triggering shell completion with python3 uninstalled (#1310)
2950
* To package managers: as shell completion scripts of fastfetch use python3, it should be added as an optional dependency of fastfetch
3051
* Fix possible crashes when detecting term font of kitty (#1321, TerminalFont, Linux)

CMakeLists.txt

Lines changed: 25 additions & 5 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.27.1
4+
VERSION 2.28.0
55
LANGUAGES C
66
DESCRIPTION "Fast neofetch-like system information tool"
77
HOMEPAGE_URL "https://github.com/fastfetch-cli/fastfetch"
@@ -379,6 +379,7 @@ set(LIBFASTFETCH_SRC
379379
src/modules/initsystem/initsystem.c
380380
src/modules/gamepad/gamepad.c
381381
src/modules/kernel/kernel.c
382+
src/modules/keyboard/keyboard.c
382383
src/modules/lm/lm.c
383384
src/modules/loadavg/loadavg.c
384385
src/modules/locale/locale.c
@@ -402,6 +403,7 @@ set(LIBFASTFETCH_SRC
402403
src/modules/sound/sound.c
403404
src/modules/swap/swap.c
404405
src/modules/media/media.c
406+
src/modules/mouse/mouse.c
405407
src/modules/terminal/terminal.c
406408
src/modules/terminaltheme/terminaltheme.c
407409
src/modules/terminalfont/terminalfont.c
@@ -478,6 +480,7 @@ if(LINUX)
478480
src/detection/host/host_linux.c
479481
src/detection/icons/icons_linux.c
480482
src/detection/initsystem/initsystem_linux.c
483+
src/detection/keyboard/keyboard_linux.c
481484
src/detection/libc/libc_linux.c
482485
src/detection/lm/lm_linux.c
483486
src/detection/loadavg/loadavg_linux.c
@@ -486,6 +489,7 @@ if(LINUX)
486489
src/detection/gamepad/gamepad_linux.c
487490
src/detection/media/media_linux.c
488491
src/detection/memory/memory_linux.c
492+
src/detection/mouse/mouse_linux.c
489493
src/detection/netio/netio_linux.c
490494
src/detection/opengl/opengl_linux.c
491495
src/detection/os/os_linux.c
@@ -542,6 +546,7 @@ elseif(ANDROID)
542546
src/detection/host/host_android.c
543547
src/detection/icons/icons_nosupport.c
544548
src/detection/initsystem/initsystem_linux.c
549+
src/detection/keyboard/keyboard_nosupport.c
545550
src/detection/libc/libc_android.c
546551
src/detection/lm/lm_nosupport.c
547552
src/detection/loadavg/loadavg_linux.c
@@ -550,6 +555,7 @@ elseif(ANDROID)
550555
src/detection/gamepad/gamepad_nosupport.c
551556
src/detection/media/media_nosupport.c
552557
src/detection/memory/memory_linux.c
558+
src/detection/mouse/mouse_nosupport.c
553559
src/detection/netio/netio_linux.c
554560
src/detection/opengl/opengl_linux.c
555561
src/detection/os/os_android.c
@@ -622,13 +628,15 @@ elseif(FreeBSD)
622628
src/detection/lm/lm_linux.c
623629
src/detection/icons/icons_linux.c
624630
src/detection/initsystem/initsystem_linux.c
631+
src/detection/keyboard/keyboard_bsd.c
625632
src/detection/libc/libc_bsd.c
626633
src/detection/loadavg/loadavg_bsd.c
627634
src/detection/locale/locale_linux.c
628635
src/detection/localip/localip_linux.c
629636
src/detection/gamepad/gamepad_bsd.c
630637
src/detection/media/media_linux.c
631638
src/detection/memory/memory_bsd.c
639+
src/detection/mouse/mouse_bsd.c
632640
src/detection/netio/netio_bsd.c
633641
src/detection/opengl/opengl_linux.c
634642
src/detection/os/os_linux.c
@@ -701,13 +709,15 @@ elseif(OpenBSD)
701709
src/detection/lm/lm_nosupport.c
702710
src/detection/icons/icons_linux.c
703711
src/detection/initsystem/initsystem_linux.c
712+
src/detection/keyboard/keyboard_nosupport.c
704713
src/detection/libc/libc_nosupport.c
705714
src/detection/loadavg/loadavg_bsd.c
706715
src/detection/locale/locale_linux.c
707716
src/detection/localip/localip_linux.c
708717
src/detection/gamepad/gamepad_nosupport.c
709718
src/detection/media/media_linux.c
710719
src/detection/memory/memory_obsd.c
720+
src/detection/mouse/mouse_nosupport.c
711721
src/detection/netio/netio_nosupport.c
712722
src/detection/opengl/opengl_linux.c
713723
src/detection/os/os_obsd.c
@@ -766,6 +776,7 @@ elseif(APPLE)
766776
src/detection/host/host_apple.c
767777
src/detection/icons/icons_nosupport.c
768778
src/detection/initsystem/initsystem_linux.c
779+
src/detection/keyboard/keyboard_apple.c
769780
src/detection/lm/lm_nosupport.c
770781
src/detection/loadavg/loadavg_bsd.c
771782
src/detection/libc/libc_apple.c
@@ -774,6 +785,7 @@ elseif(APPLE)
774785
src/detection/gamepad/gamepad_apple.c
775786
src/detection/media/media_apple.m
776787
src/detection/memory/memory_apple.c
788+
src/detection/mouse/mouse_apple.c
777789
src/detection/netio/netio_bsd.c
778790
src/detection/opengl/opengl_apple.c
779791
src/detection/os/os_apple.m
@@ -832,6 +844,7 @@ elseif(WIN32)
832844
src/detection/host/host_windows.c
833845
src/detection/icons/icons_windows.c
834846
src/detection/initsystem/initsystem_nosupport.c
847+
src/detection/keyboard/keyboard_windows.c
835848
src/detection/libc/libc_windows.cpp
836849
src/detection/lm/lm_nosupport.c
837850
src/detection/loadavg/loadavg_nosupport.c
@@ -840,10 +853,11 @@ elseif(WIN32)
840853
src/detection/gamepad/gamepad_windows.c
841854
src/detection/media/media_windows.c
842855
src/detection/memory/memory_windows.c
856+
src/detection/mouse/mouse_windows.c
843857
src/detection/physicalmemory/physicalmemory_linux.c
844858
src/detection/netio/netio_windows.c
845859
src/detection/opengl/opengl_windows.c
846-
src/detection/os/os_windows.cpp
860+
src/detection/os/os_windows.c
847861
src/detection/packages/packages_windows.c
848862
src/detection/poweradapter/poweradapter_nosupport.c
849863
src/detection/processes/processes_windows.c
@@ -916,6 +930,7 @@ elseif(SunOS)
916930
src/detection/host/host_windows.c
917931
src/detection/icons/icons_linux.c
918932
src/detection/initsystem/initsystem_linux.c
933+
src/detection/keyboard/keyboard_nosupport.c
919934
src/detection/libc/libc_nosupport.c
920935
src/detection/lm/lm_nosupport.c
921936
src/detection/loadavg/loadavg_sunos.c
@@ -924,6 +939,7 @@ elseif(SunOS)
924939
src/detection/gamepad/gamepad_nosupport.c
925940
src/detection/media/media_linux.c
926941
src/detection/memory/memory_sunos.c
942+
src/detection/mouse/mouse_nosupport.c
927943
src/detection/netio/netio_sunos.c
928944
src/detection/opengl/opengl_linux.c
929945
src/detection/os/os_sunos.c
@@ -1026,10 +1042,12 @@ if(FreeBSD AND EXISTS "/usr/local/bin/objdump")
10261042
endif()
10271043
endif()
10281044

1029-
if(LINUX OR ANDROID)
1030-
target_compile_definitions(libfastfetch PUBLIC _GNU_SOURCE _XOPEN_SOURCE __STDC_WANT_LIB_EXT1__=1 _FILE_OFFSET_BITS=64)
1045+
if(LINUX)
1046+
target_compile_definitions(libfastfetch PUBLIC _GNU_SOURCE _XOPEN_SOURCE _ATFILE_SOURCE __STDC_WANT_LIB_EXT1__ _FILE_OFFSET_BITS=64) # "$<$<CONFIG:Release>:_FORTIFY_SOURCE=3>"
1047+
elseif(ANDROID)
1048+
target_compile_definitions(libfastfetch PUBLIC _GNU_SOURCE _XOPEN_SOURCE _FILE_OFFSET_BITS=64 "$<$<CONFIG:DEBUG>:__BIONIC_FORTIFY>" "$<$<CONFIG:DEBUG>:__BIONIC_FORTIFY_RUNTIME_CHECKS_ENABLED>")
10311049
elseif(WIN32)
1032-
target_compile_definitions(libfastfetch PUBLIC _GNU_SOURCE WIN32_LEAN_AND_MEAN=1 _WIN32_WINNT=0x0A00)
1050+
target_compile_definitions(libfastfetch PUBLIC _GNU_SOURCE WIN32_LEAN_AND_MEAN=1 _WIN32_WINNT=0x0A00) # "$<$<CONFIG:Release>:_FORTIFY_SOURCE=3>"
10331051
elseif(APPLE)
10341052
target_compile_definitions(libfastfetch PUBLIC _GNU_SOURCE _XOPEN_SOURCE __STDC_WANT_LIB_EXT1__ _FILE_OFFSET_BITS=64 _DARWIN_C_SOURCE)
10351053
elseif(OpenBSD)
@@ -1298,6 +1316,8 @@ elseif(WIN32)
12981316
PRIVATE "hid"
12991317
PRIVATE "wtsapi32"
13001318
PRIVATE "imagehlp"
1319+
PRIVATE "cfgmgr32"
1320+
PRIVATE "winbrand"
13011321
)
13021322
elseif(FreeBSD)
13031323
target_link_libraries(libfastfetch

debian/changelog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
fastfetch (2.27.1) jammy; urgency=medium
2+
3+
* Update to 2.27.1
4+
5+
-- Carter Li <[email protected]> Sun, 06 Oct 2024 12:55:18 +0800
6+
17
fastfetch (2.26.1ubuntu1) jammy; urgency=medium
28

39
* Update correct code

debian/files

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

doc/json_schema.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1181,6 +1181,12 @@
11811181
"description": "Display CPU usage per CPU logical core, instead of an average result",
11821182
"default": false
11831183
},
1184+
"waitTime": {
1185+
"type": "integer",
1186+
"description": "Wait time (in ms). CPU usage = (inUseEnd - inUseStart) / waitTime",
1187+
"default": 200,
1188+
"minimum": 1
1189+
},
11841190
"key": {
11851191
"$ref": "#/$defs/key"
11861192
},
@@ -1472,6 +1478,12 @@
14721478
"type": "boolean",
14731479
"default": false
14741480
},
1481+
"waitTime": {
1482+
"type": "integer",
1483+
"description": "Wait time (in ms). Disk I/O = (totalBytesEnd - totalBytesStart) / waitTime",
1484+
"default": 200,
1485+
"minimum": 1
1486+
},
14751487
"key": {
14761488
"$ref": "#/$defs/key"
14771489
},
@@ -1841,6 +1853,12 @@
18411853
"type": "boolean",
18421854
"default": false
18431855
},
1856+
"waitTime": {
1857+
"type": "integer",
1858+
"description": "Wait time (in ms). Disk I/O = (totalBytesEnd - totalBytesStart) / waitTime",
1859+
"default": 200,
1860+
"minimum": 1
1861+
},
18441862
"key": {
18451863
"$ref": "#/$defs/key"
18461864
},

presets/all.jsonc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@
7474
"showSpeed": true,
7575
"showMtu": true,
7676
"showLoop": true,
77-
"showFlags": true
77+
"showFlags": true,
78+
"showAllIps": true
7879
},
7980
"dns",
8081
"wifi",

presets/ci.jsonc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@
7676
"showSpeed": true,
7777
"showMtu": true,
7878
"showLoop": true,
79-
"showFlags": true
79+
"showFlags": true,
80+
"showAllIps": true
8081
},
8182
"dns",
8283
"wifi",

0 commit comments

Comments
 (0)