Skip to content

Commit f833dda

Browse files
authored
Merge pull request #1656 from fastfetch-cli/dev
Release: v2.40.0
2 parents 8b0c32a + ceecb39 commit f833dda

File tree

137 files changed

+9618
-980
lines changed

Some content is hidden

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

137 files changed

+9618
-980
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -520,41 +520,6 @@ jobs:
520520
name: fastfetch-freebsd-amd64
521521
path: ./fastfetch-*.*
522522

523-
dragonfly-amd64:
524-
name: DragonFly-amd64
525-
runs-on: ubuntu-latest
526-
permissions:
527-
security-events: write
528-
contents: read
529-
steps:
530-
- name: checkout repository
531-
uses: actions/checkout@v4
532-
533-
- name: run VM
534-
uses: vmactions/dragonflybsd-vm@v1
535-
with:
536-
usesh: yes
537-
prepare: |
538-
uname -a
539-
pkg update
540-
pkg install -y cmake git pkgconf binutils wayland vulkan-headers vulkan-loader libxcb libXrandr libX11 libdrm glib dconf dbus sqlite3-tcl xfce4-conf egl opencl ocl-icd v4l_compat chafa libelf
541-
542-
run: |
543-
cmake -DSET_TWEAK=Off -DBUILD_TESTS=On -DENABLE_EMBEDDED_PCIIDS=On -DENABLE_EMBEDDED_AMDGPUIDS=On .
544-
cmake --build . --target package --verbose -j4
545-
./fastfetch --list-features
546-
time ./fastfetch -c presets/ci.jsonc --stat false
547-
time ./fastfetch -c presets/ci.jsonc --format json
548-
time ./flashfetch
549-
ldd fastfetch
550-
ctest --output-on-failure
551-
552-
- name: upload artifacts
553-
uses: actions/upload-artifact@v4
554-
with:
555-
name: fastfetch-dragonfly-amd64
556-
path: ./fastfetch-*.*
557-
558523
openbsd-amd64:
559524
name: OpenBSD-amd64
560525
runs-on: ubuntu-latest
@@ -659,9 +624,6 @@ jobs:
659624
- name: copy necessary dlls
660625
run: cp /clang64/bin/{OpenCL,vulkan-1}.dll .
661626

662-
- name: download amd_ags
663-
run: curl -LO https://github.com/GPUOpen-LibrariesAndSDKs/AGS_SDK/raw/master/ags_lib/lib/amd_ags_x64.dll
664-
665627
- name: list features
666628
run: ./fastfetch --list-features
667629

@@ -709,7 +671,6 @@ jobs:
709671
- freebsd-amd64
710672
- openbsd-amd64
711673
- netbsd-amd64
712-
- dragonfly-amd64
713674
- sunos-amd64
714675
- windows-amd64
715676
permissions:

CHANGELOG.md

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,44 @@
1+
# 2.40.0
2+
3+
Changes:
4+
* In `key-format` of `LocalIP` module, `{name}` has been renamed to `{ifname}` for consistency (LocalIP, #1639)
5+
6+
Features:
7+
* Support Warp Terminal font detection (TerminalFont, Windows)
8+
* Support more AMD GPU information using ADL SDK, including memory type detection (GPU, Windows)
9+
* Support Intel dGPU memory type detection (GPU, Windows)
10+
* Support Nvidia VMEM type detection via NVAPI (GPU, Windows, #993)
11+
* Support Boot manager detection for OpenBSD and NetBSD (Bootmgr, OpenBSD / NetBSD)
12+
* Use `SystemConfiguration` for DNS entries detection (DNS, macOS)
13+
* Add `systemd-resolved` support for DNS module (DNS, Linux, #1646)
14+
* Improve performance and accuracy of Wifi detection on FreeBSD using ioctl (Wifi, FreeBSD)
15+
* Support remaining time reporting for batteries on NetBSD (Battery, NetBSD)
16+
* Add new Mac models support (Host, macOS)
17+
* Load config from fastfetch binary path with `--config` option (#1649)
18+
* Support TPM detection on macOS (TPM, macOS)
19+
* Support IPv6 client address report (Users, Linux / Windows)
20+
* Support default route detection for IPv6 (LocalIP, Linux)
21+
* Round seconds to the nearest minute to match the behavior of `uptime` command (Uptime)
22+
23+
Bugfixes:
24+
* Fix `outputColor` not working when `length` is set in Separator module (#1644)
25+
* Fix CPU detection on PowerPC platforms (#1640, CPU, Linux)
26+
* Fix battery manufacture date detection (Battery, macOS)
27+
* Fix battery critical state detection (Battery, Linux)
28+
* Fix Warp Terminal PID detection (Terminal, macOS)
29+
* Remove disk creation time detection support on SunOS as ctim is file status change timestamp, not creation time (Disk, SunOS)
30+
* Fall back to KDGKBINFO if `usbhid` fails (Keyboard, FreeBSD)
31+
* Fix multiple paging file support (Swap, Windows)
32+
* Fix memleaks, code smells in multiple modules
33+
* Fix boot time calculation on NetBSD (Uptime, NetBSD)
34+
* Temporarily fix Hyprland version detection (WM, Linux, #1657)
35+
36+
Logo:
37+
* Fix opensuse-tumbleweed_small (#1636)
38+
* Change WiiLinuxNgx to more generic name with aliases Wii-Linux and WiiLinux (#1633)
39+
* Change name of Xray-OS to Ada (#1651)
40+
* Change Nexa Linux logo (#1653)
41+
142
# 2.39.1
243

344
Bugfixes:
@@ -336,7 +377,7 @@ Features:
336377
* Support tilix version detection (Terminal, Linux)
337378
* Support percent type config in module level. Example:
338379

339-
```json
380+
```jsonc
340381
{
341382
"type": "memory",
342383
"percent": {

CMakeLists.txt

Lines changed: 13 additions & 11 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.39.1
4+
VERSION 2.40.0
55
LANGUAGES C
66
DESCRIPTION "Fast neofetch-like system information tool"
77
HOMEPAGE_URL "https://github.com/fastfetch-cli/fastfetch"
@@ -708,7 +708,6 @@ elseif(FreeBSD)
708708
src/detection/uptime/uptime_bsd.c
709709
src/detection/users/users_linux.c
710710
src/detection/wallpaper/wallpaper_linux.c
711-
src/detection/wifi/wifi_bsd.c
712711
src/detection/wm/wm_nosupport.c
713712
src/detection/de/de_linux.c
714713
src/detection/wmtheme/wmtheme_linux.c
@@ -720,10 +719,12 @@ elseif(FreeBSD)
720719
if(DragonFly)
721720
list(APPEND LIBFASTFETCH_SRC
722721
src/detection/bluetooth/bluetooth_nosupport.c
722+
src/detection/wifi/wifi_nosupport.c
723723
)
724724
else()
725725
list(APPEND LIBFASTFETCH_SRC
726726
src/detection/bluetooth/bluetooth_bsd.c
727+
src/detection/wifi/wifi_bsd.c
727728
)
728729
endif()
729730
elseif(NetBSD)
@@ -739,7 +740,7 @@ elseif(NetBSD)
739740
src/detection/bluetooth/bluetooth_nosupport.c
740741
src/detection/bluetoothradio/bluetoothradio_nosupport.c
741742
src/detection/board/board_nbsd.c
742-
src/detection/bootmgr/bootmgr_nosupport.c
743+
src/detection/bootmgr/bootmgr_bsd.c
743744
src/detection/brightness/brightness_nbsd.c
744745
src/detection/btrfs/btrfs_nosupport.c
745746
src/detection/chassis/chassis_nbsd.c
@@ -817,22 +818,22 @@ elseif(OpenBSD)
817818
src/common/processing_linux.c
818819
src/common/sysctl.c
819820
src/detection/battery/battery_obsd.c
820-
src/detection/bios/bios_nosupport.c
821+
src/detection/bios/bios_windows.c
821822
src/detection/bluetooth/bluetooth_nosupport.c
822823
src/detection/bluetoothradio/bluetoothradio_nosupport.c
823-
src/detection/board/board_nosupport.c
824-
src/detection/bootmgr/bootmgr_nosupport.c
824+
src/detection/board/board_windows.c
825+
src/detection/bootmgr/bootmgr_bsd.c
825826
src/detection/brightness/brightness_obsd.c
826827
src/detection/btrfs/btrfs_nosupport.c
827-
src/detection/chassis/chassis_nosupport.c
828+
src/detection/chassis/chassis_windows.c
828829
src/detection/cpu/cpu_obsd.c
829-
src/detection/cpucache/cpucache_nosupport.c
830+
src/detection/cpucache/cpucache_shared.c
830831
src/detection/cpuusage/cpuusage_bsd.c
831832
src/detection/cursor/cursor_linux.c
832833
src/detection/disk/disk_bsd.c
833834
src/detection/dns/dns_linux.c
834835
src/detection/physicaldisk/physicaldisk_nosupport.c
835-
src/detection/physicalmemory/physicalmemory_nosupport.c
836+
src/detection/physicalmemory/physicalmemory_linux.c
836837
src/detection/diskio/diskio_obsd.c
837838
src/detection/displayserver/linux/displayserver_linux.c
838839
src/detection/displayserver/linux/drm.c
@@ -889,6 +890,7 @@ elseif(OpenBSD)
889890
src/detection/zpool/zpool_nosupport.c
890891
src/util/platform/FFPlatform_unix.c
891892
src/util/binary_linux.c
893+
src/util/smbiosHelper.c
892894
)
893895
elseif(APPLE)
894896
list(APPEND LIBFASTFETCH_SRC
@@ -911,7 +913,7 @@ elseif(APPLE)
911913
src/detection/cpuusage/cpuusage_apple.c
912914
src/detection/cursor/cursor_apple.m
913915
src/detection/disk/disk_bsd.c
914-
src/detection/dns/dns_linux.c
916+
src/detection/dns/dns_apple.c
915917
src/detection/physicaldisk/physicaldisk_apple.c
916918
src/detection/physicalmemory/physicalmemory_apple.m
917919
src/detection/diskio/diskio_apple.c
@@ -945,7 +947,7 @@ elseif(APPLE)
945947
src/detection/terminalshell/terminalshell_linux.c
946948
src/detection/terminalsize/terminalsize_linux.c
947949
src/detection/theme/theme_nosupport.c
948-
src/detection/tpm/tpm_nosupport.c
950+
src/detection/tpm/tpm_apple.c
949951
src/detection/uptime/uptime_bsd.c
950952
src/detection/users/users_linux.c
951953
src/detection/wallpaper/wallpaper_apple.m

debian/changelog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
fastfetch (2.39.1) jammy; urgency=medium
2+
3+
* Update to 2.39.1
4+
5+
-- Carter Li <[email protected]> Fri, 21 Mar 2025 11:02:19 +0800
6+
17
fastfetch (2.39.0ubuntu1) jammy; urgency=medium
28

39
* Remove unwanted debugging code

debian/files

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

presets/examples/24.jsonc

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,38 +28,38 @@
2828
{
2929
"type": "title",
3030
"key": "{#90}{$1}│ {#92}User {#90}│",
31-
"format": "{$2}{$3}{user-name} {#2}[{home-dir}]"
31+
"format": "{$2}{$3}{user-name} {#2}[{home-dir}]"
3232
},
3333
{
3434
"type": "users",
3535
"key": "{#90}{$1}│ {#92}Users {#90}│",
3636
"myselfOnly": false,
37-
"format": "{$2}{$3}{1}@{host-name}{/host-name}localhost{/}{?client-ip} {#2}[IP:{client-ip}]{?} {#2}[Login time: {login-time}]",
37+
"format": "{$2}{$3}{1}@{host-name}{/host-name}localhost{/}{?client-ip} {#2}[IP:{client-ip}]{?} [Login time: {login-time}]"
3838
},
3939
{
4040
"type": "datetime",
4141
"key": "{#90}{$1}│ {#92}Datetime {#90}│",
42-
"format": "{$2}{$3}{year}-{month-pretty}-{day-in-month} {hour-pretty}:{minute-pretty}:{second-pretty} {#2}{weekday} {#2}[W{week}] {#2}[UTC{offset-from-utc}]"
42+
"format": "{$2}{$3}{year}-{month-pretty}-{day-in-month} {hour-pretty}:{minute-pretty}:{second-pretty} [{weekday}] [W{week}] [UTC{offset-from-utc}]"
4343
},
4444
{
4545
"type": "title",
46-
"key": "{#90}{$1}│ {#93}Host: {#90}│",
47-
"format": "{$2}{$3}{#1}{#36}{host-name}"
46+
"key": "{#90}{$1}│ {#93}Host {#90}│",
47+
"format": "{$2}{$3}{host-name}"
4848
},
4949
{
5050
"type": "host",
5151
"key": "{#90}{$1}│ {#93}Machine {#90}│",
52-
"format": "{$2}{$3}{name} {#2}{version}"
52+
"format": "{$2}{$3}{name} {#2}{version}"
5353
},
5454
{
5555
"type": "os",
5656
"key": "{#90}{$1}│ {#93}OS {#90}│",
57-
"format": "{$2}{$3}{pretty-name} {codename} {#2}[v{version}] {#2}[{arch}]"
57+
"format": "{$2}{$3}{?pretty-name}{pretty-name}{?}{/pretty-name}{name}{/} {codename} {#2}[v{version}] [{arch}]"
5858
},
5959
{
6060
"type": "kernel",
6161
"key": "{#90}{$1}│ {#93}Kernel {#90}│",
62-
"format": "{$2}{$3}{sysname} {#2}[v{release}]"
62+
"format": "{$2}{$3}{sysname} {#2}[v{release}]"
6363
},
6464
{
6565
"type": "uptime",
@@ -71,14 +71,14 @@
7171
"key": "{#90}{$1}│ {#91}CPU {#90}│",
7272
"showPeCoreCount": true,
7373
"temp": true,
74-
"format": "{$2}{$3}{name} {#2}[C:{core-types}] {#2}[{freq-max}]"
74+
"format": "{$2}{$3}{name} {#2}[C:{core-types}] [{freq-max}]"
7575
},
7676
{
7777
"type": "gpu",
7878
"key": "{#90}{$1}│ {#91}GPU {#90}│",
7979
"detectionMethod": "auto",
8080
"driverSpecific": true,
81-
"format": "{$2}{$3}{name} {#2}[C:{core-count}] {#2}[{type}]"
81+
"format": "{$2}{$3}{name} {#2}[C:{core-count}]{?frequency} [{frequency}]{?} [{type}]"
8282
},
8383
{
8484
"type": "memory",
@@ -98,7 +98,7 @@
9898
{
9999
"type": "terminal",
100100
"key": "{#90}{$1}│ {#95}Terminal {#90}│",
101-
"format": "{$2}{$3}{pretty-name} {#2}[{version}] [PID:{pid}]"
101+
"format": "{$2}{$3}{pretty-name} {#2}[{version}] [PID:{pid}]"
102102
},
103103
{
104104
"type": "terminalfont",

0 commit comments

Comments
 (0)