Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
74 commits
Select commit Hold shift + click to select a range
985264d
Fastfetch: add `Directx Headers` to `--list-features`
CarterLi Oct 2, 2023
1985552
Disk (Windows): fix crashing on Windows 7 VM
CarterLi Oct 3, 2023
be86006
Users (Windows): fix crashing caused by uninitialized strings
CarterLi Oct 3, 2023
3eb9ace
Doc: update changelog
CarterLi Oct 3, 2023
1a4eb25
DisplayServer (Linux): add debug log for #568
CarterLi Oct 2, 2023
4a89b92
Disk: allow custiomize disk key with `mountFrom`
CarterLi Oct 3, 2023
27581d9
Disk (macOS): detect physical type
CarterLi Oct 3, 2023
f8aafb7
Monitor (macOS): better intel platform support
CarterLi Oct 3, 2023
8795d99
Brightness: add DDC/CI support for Intel
CarterLi Oct 4, 2023
9972c61
Sound (macOS): support non-controllable devices
CarterLi Oct 4, 2023
f78f97a
Revert "DisplayServer (Linux): add debug log for #568"
CarterLi Oct 4, 2023
1dfa031
Fix several `--help` command related issues (#572)
iamrasel Oct 5, 2023
23d2cc3
Version: print libc version used when compiling
CarterLi Oct 5, 2023
12208b2
Global: improve support of `--help *-format`
CarterLi Oct 7, 2023
c77a758
Packages (Linux): support opkg
CarterLi Oct 7, 2023
d7ef7bc
Doc: update changelog
CarterLi Oct 7, 2023
4c96d04
TerminalShell (Linux): add `ash` as a known shell
CarterLi Oct 7, 2023
41551ef
Sound: fix typo
CarterLi Oct 7, 2023
3077f88
Sound (macOS): ignore input devices
CarterLi Oct 7, 2023
90ea096
macOS: don't keep variable `matchDict`
CarterLi Oct 7, 2023
fe4eb56
NetIO: add missing `#pragma once`
CarterLi Oct 7, 2023
55f0f75
Packages (Linux): print opkg in JSON format
CarterLi Oct 7, 2023
b1d63e0
NetIO: fix `--help netio-format`
CarterLi Oct 7, 2023
276e22f
DiskIO: init module
CarterLi Oct 7, 2023
e4a6bf1
Terminal: support kgx (gnome console)
CarterLi Oct 8, 2023
49e2acd
Printing: fix `--help *-format`
CarterLi Oct 8, 2023
d7649d9
DiskIO: fix building
CarterLi Oct 8, 2023
4c9d9f6
TerminalFont (Linux): fix typo
CarterLi Oct 8, 2023
78249bf
CPU: add new option `--cpu-freq-ndigits`
CarterLi Oct 8, 2023
085d092
Brightness (Linux): try improving compatibility of ddcutil 2.0
CarterLi Oct 8, 2023
b213047
DiskIO (macOS): add support
CarterLi Oct 8, 2023
0b0e286
DiskIO: support `--diskio-name-prefix`
CarterLi Oct 8, 2023
5c5c66d
DiskIO: fix segfault...
CarterLi Oct 8, 2023
8df6409
DiskIO (Windows): better device name detection
CarterLi Oct 8, 2023
1f23e93
Logo: add Chimera Linux
JamiKettunen Oct 5, 2023
dc50e24
Doc: update changelog and readme
CarterLi Oct 8, 2023
2e60f34
DiskIO: add to `presets/all`
CarterLi Oct 8, 2023
fa46dce
CMake: detect uclibc and musl version
CarterLi Oct 8, 2023
685676b
CMake: don't hardcode system arch
CarterLi Oct 9, 2023
1188db9
CMake: simplify musl version detection
CarterLi Oct 9, 2023
430da15
Libc (macOS): detect `libSystem` version
CarterLi Oct 9, 2023
2d2e0dd
Libc (FreeBSD): detect FBSD version
CarterLi Oct 9, 2023
b76d6e9
DiskIO (FreeBSD): add support
CarterLi Oct 9, 2023
5ccd196
DiskIO: print `devPath`
CarterLi Oct 9, 2023
44b417d
DiskIO (FreeBSD): skip `/dev/pass*`
CarterLi Oct 9, 2023
a0343d6
CI: run `--format json`
CarterLi Oct 9, 2023
4194e56
DiskIO (Windows): better name detection for Github Action
CarterLi Oct 9, 2023
8fa6aee
Disk: move `physicalType` to module `DiskIO`
CarterLi Oct 9, 2023
d16bdb3
DiskIO: update formatting help messages; update json keys
CarterLi Oct 9, 2023
ccbb252
DiskIO: update doc and json schema
CarterLi Oct 9, 2023
42f6d02
Doc: update JSON schema; make it more IDE friendly
CarterLi Oct 9, 2023
e7df944
Temp (FreeBSD): improve CPU temp detection
CarterLi Oct 10, 2023
2feb531
Revert "CpuUsage (apple): simplify implementation"
CarterLi Oct 10, 2023
c96d21c
CPUUsage (Linux): count cpu cores separately
CarterLi Oct 10, 2023
6b008ed
CPUUsage (FreeBSD): count cpu cores separately
CarterLi Oct 10, 2023
42cf88b
CPUUsage: support display value per core
CarterLi Oct 10, 2023
e297144
CPUUsage: fix multi core data detection
CarterLi Oct 10, 2023
0847432
CPUUsage: rename `cpuusage-display-type` to `separate`
CarterLi Oct 10, 2023
4e75fa9
Logo (Builtin): add EndeavourSmall
CarterLi Oct 10, 2023
5493f41
Users: fix crashing on Windows; rename `tty` to more common name `ses…
CarterLi Oct 10, 2023
ab8448e
DiskIO (Windows): fix device name detection
CarterLi Oct 10, 2023
e319be1
Wifi (macOS): print `<unknown ssid>` when we can't get SSID
CarterLi Oct 11, 2023
1fe9273
macOS: embed `Info.plist`
CarterLi Oct 11, 2023
076324e
Wifi (macOS): remove undesired code
CarterLi Oct 11, 2023
643fed7
Doc: metion bug #581
CarterLi Oct 11, 2023
5827886
Doc: add information about how to make `Termux API` actually work
CarterLi Oct 11, 2023
ebab281
Processes (Linux): fix implementation
CarterLi Oct 11, 2023
839ff31
Wifi (macOS): work around #581
CarterLi Oct 13, 2023
42e87b4
Brightness (Linux): allow specifying busno for ddcutil
CarterLi Oct 13, 2023
af94596
Revert "Brightness (Linux): allow specifying busno for ddcutil"
CarterLi Oct 14, 2023
e9c2a43
Brightness: add `--brightness-ddcci-sleep` to set the sleep times (in…
CarterLi Oct 14, 2023
501803c
Logo (Builtin): add Xenia
CarterLi Oct 14, 2023
5e19838
Doc: update changelog
CarterLi Oct 14, 2023
98e8e59
Release v2.1.1
CarterLi Oct 14, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 19 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,13 @@ jobs:
run: ctest

- name: run fastfetch
run: ./fastfetch --stat --show-errors --no-buffer --load-config presets/all
run: time ./fastfetch -c presets/ci

- name: run fastfetch --format json
run: time ./fastfetch -c presets/ci --format json

- name: run flashfetch
run: ./flashfetch
run: time ./flashfetch

linux:
name: Linux
Expand Down Expand Up @@ -84,6 +87,9 @@ jobs:
- name: run fastfetch
run: time ./fastfetch -c presets/ci

- name: run fastfetch --format json
run: time ./fastfetch -c presets/ci --format json

- name: run flashfetch
run: time ./flashfetch

Expand Down Expand Up @@ -136,6 +142,9 @@ jobs:
- name: run fastfetch
run: time ./fastfetch -c presets/ci

- name: run fastfetch --format json
run: time ./fastfetch -c presets/ci --format json

- name: run flashfetch
run: time ./flashfetch

Expand Down Expand Up @@ -165,12 +174,13 @@ jobs:
uses: vmactions/freebsd-vm@v0
with:
prepare: |
pkg install -y cmake git pkgconf pciutils wayland vulkan-headers vulkan-loader libxcb libXrandr libX11 glib dconf dbus sqlite3-tcl xfce4-conf ImageMagick6 ImageMagick7 chafa egl libosmesa opencl ocl-icd pulseaudio
pkg install -y cmake git pkgconf binutils pciutils wayland vulkan-headers vulkan-loader libxcb libXrandr libX11 glib dconf dbus sqlite3-tcl xfce4-conf ImageMagick6 ImageMagick7 chafa egl libosmesa opencl ocl-icd pulseaudio
run: |
cmake -DSET_TWEAK=Off -DBUILD_TESTS=On .
cmake --build . --target package
./fastfetch --list-features
time ./fastfetch -c presets/ci
time ./fastfetch -c presets/ci --format json
time ./flashfetch
ldd fastfetch
ctest
Expand Down Expand Up @@ -227,6 +237,9 @@ jobs:
- name: run fastfetch
run: time ./fastfetch -c presets/ci

- name: run fastfetch --format json
run: time ./fastfetch -c presets/ci --format json

- name: run flashfetch
run: time ./flashfetch

Expand Down Expand Up @@ -291,6 +304,9 @@ jobs:
- name: run fastfetch
run: time ./fastfetch -c presets/ci

- name: run fastfetch --format json
run: time ./fastfetch -c presets/ci --format json

- name: run flashfetch
run: time ./flashfetch

Expand Down
23 changes: 23 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,26 @@
# 2.1.1

Features:
* Support opkg (Packages, Linux)
* Support GNOME Console terminal version and font detection (Terminal, Linux)
* Add `--cpu-freq-ndigits` to set number of digits for CPU frequency (CPU)
* New module to detect physical disk I/O usage (DiskIO)
* Add `--cpuusage-separate` to display CPU usage per CPU logical core
* Add `--brightness-ddcci-sleep` to set the sleep times (in ms) when sending DDC/CI requests (Brightness, #580)

Bugfixes:
* Fix possible crashes on Windows 7 (Disk, Windows)
* Fix possible crashes caused by uninitialized strings (Users, Windows)
* Improve support of `--help *-format` and several bugs are found and fixed
* Don't incorrectly print `No active sound devices found` when using a non-controllable sound device (Sound, macOS)
* Fix implementation processes counting (Processes, Linux)
* Work around a issue that SSID cannot be detected on macOS Sonoma (Wifi, macOS)

Logo:
* Add Chimera Linux
* Add EndeavourSmall
* Add Xenia

# 2.1.0

This release introduces a new output format: JSON result
Expand Down
47 changes: 46 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
cmake_minimum_required(VERSION 3.12.0) # target_link_libraries with OBJECT libs & project homepage url

project(fastfetch
VERSION 2.1.0
VERSION 2.1.1
LANGUAGES C
DESCRIPTION "Fast system information tool"
HOMEPAGE_URL "https://github.com/fastfetch-cli/fastfetch"
Expand Down Expand Up @@ -222,6 +222,9 @@ fastfetch_load_text(src/data/help_config.txt DATATEXT_HELP_CONFIG)

configure_file(src/fastfetch_config.h.in fastfetch_config.h @ONLY)
configure_file(src/fastfetch_datatext.h.in fastfetch_datatext.h @ONLY)
if(APPLE)
configure_file(src/util/apple/Info.plist.in Info.plist @ONLY)
endif()

####################
# Ascii image data #
Expand Down Expand Up @@ -273,6 +276,7 @@ set(LIBFASTFETCH_SRC
src/detection/cpu/cpu.c
src/detection/cpuusage/cpuusage.c
src/detection/disk/disk.c
src/detection/diskio/diskio.c
src/detection/displayserver/displayserver.c
src/detection/font/font.c
src/detection/gpu/gpu.c
Expand Down Expand Up @@ -310,6 +314,7 @@ set(LIBFASTFETCH_SRC
src/modules/datetime/datetime.c
src/modules/de/de.c
src/modules/disk/disk.c
src/modules/diskio/diskio.c
src/modules/font/font.c
src/modules/gpu/gpu.c
src/modules/host/host.c
Expand Down Expand Up @@ -375,6 +380,7 @@ if(LINUX)
src/detection/cursor/cursor_linux.c
src/detection/bluetooth/bluetooth_linux.c
src/detection/disk/disk_linux.c
src/detection/diskio/diskio_linux.c
src/detection/displayserver/linux/displayserver_linux.c
src/detection/displayserver/linux/wayland.c
src/detection/displayserver/linux/wmde.c
Expand All @@ -385,6 +391,7 @@ if(LINUX)
src/detection/gtk_qt/gtk.c
src/detection/host/host_linux.c
src/detection/icons/icons_linux.c
src/detection/libc/libc_linux.c
src/detection/lm/lm_linux.c
src/detection/localip/localip_linux.c
src/detection/gamepad/gamepad_linux.c
Expand Down Expand Up @@ -428,11 +435,13 @@ elseif(ANDROID)
src/detection/cursor/cursor_nosupport.c
src/detection/cpuusage/cpuusage_linux.c
src/detection/disk/disk_linux.c
src/detection/diskio/diskio_linux.c
src/detection/displayserver/displayserver_android.c
src/detection/font/font_nosupport.c
src/detection/gpu/gpu_nosupport.c
src/detection/host/host_android.c
src/detection/icons/icons_nosupport.c
src/detection/libc/libc_android.c
src/detection/lm/lm_nosupport.c
src/detection/localip/localip_linux.c
src/detection/gamepad/gamepad_nosupport.c
Expand Down Expand Up @@ -477,6 +486,7 @@ elseif(BSD)
src/detection/cpuusage/cpuusage_bsd.c
src/detection/cursor/cursor_linux.c
src/detection/disk/disk_bsd.c
src/detection/diskio/diskio_bsd.c
src/detection/displayserver/linux/displayserver_linux.c
src/detection/displayserver/linux/wayland.c
src/detection/displayserver/linux/wmde.c
Expand All @@ -488,6 +498,7 @@ elseif(BSD)
src/detection/host/host_bsd.c
src/detection/lm/lm_linux.c
src/detection/icons/icons_linux.c
src/detection/libc/libc_bsd.c
src/detection/localip/localip_linux.c
src/detection/gamepad/gamepad_bsd.c
src/detection/media/media_linux.c
Expand Down Expand Up @@ -531,12 +542,14 @@ elseif(APPLE)
src/detection/cpuusage/cpuusage_apple.c
src/detection/cursor/cursor_apple.m
src/detection/disk/disk_bsd.c
src/detection/diskio/diskio_apple.c
src/detection/displayserver/displayserver_apple.c
src/detection/font/font_apple.m
src/detection/gpu/gpu_apple.c
src/detection/host/host_apple.c
src/detection/lm/lm_nosupport.c
src/detection/icons/icons_nosupport.c
src/detection/libc/libc_apple.c
src/detection/localip/localip_linux.c
src/detection/gamepad/gamepad_apple.c
src/detection/media/media_apple.m
Expand Down Expand Up @@ -580,11 +593,13 @@ elseif(WIN32)
src/detection/cpuusage/cpuusage_windows.c
src/detection/cursor/cursor_windows.c
src/detection/disk/disk_windows.c
src/detection/diskio/diskio_windows.c
src/detection/displayserver/displayserver_windows.c
src/detection/font/font_windows.c
src/detection/gpu/gpu_windows.c
src/detection/host/host_windows.c
src/detection/icons/icons_windows.c
src/detection/libc/libc_windows.cpp
src/detection/lm/lm_nosupport.c
src/detection/localip/localip_windows.c
src/detection/gamepad/gamepad_windows.c
Expand Down Expand Up @@ -651,6 +666,28 @@ if(yyjson_FOUND)
target_link_libraries(libfastfetch PRIVATE yyjson)
endif()

if(LINUX AND EXISTS "/lib/ld-musl-${CMAKE_HOST_SYSTEM_PROCESSOR}.so.1")
execute_process(COMMAND "/lib/ld-musl-${CMAKE_HOST_SYSTEM_PROCESSOR}.so.1"
ERROR_VARIABLE LD_MUSL_RESULT)
if("${LD_MUSL_RESULT}" MATCHES "Version ([0-9]+\\.[0-9]+\\.[0-9]+)")
target_compile_definitions(libfastfetch PUBLIC FF_MUSL_VERSION="${CMAKE_MATCH_1}")
endif()
endif()
if(APPLE AND EXISTS "/usr/bin/otool")
execute_process(COMMAND /usr/bin/otool -L /usr/bin/otool
OUTPUT_VARIABLE OTOOL_OTOOL_RESULT)
if("${OTOOL_OTOOL_RESULT}" MATCHES "libSystem\\.B\\.dylib \\(.*current version ([0-9]+\\.[0-9]+\\.[0-9]+)\\)")
target_compile_definitions(libfastfetch PUBLIC FF_LIBSYSTEM_VERSION="${CMAKE_MATCH_1}")
endif()
endif()
if(BSD AND EXISTS "/usr/local/bin/objdump")
execute_process(COMMAND /bin/sh -c "/usr/local/bin/objdump -T /lib/libc.so.* | grep 'FBSD_[^ )]*' -o | sort -Vru | head -1"
OUTPUT_VARIABLE OBJDUMP_T_RESULT)
if("${OBJDUMP_T_RESULT}" MATCHES "FBSD_([0-9]+\\.[0-9]+)")
target_compile_definitions(libfastfetch PUBLIC FF_FBSD_VERSION="${CMAKE_MATCH_1}")
endif()
endif()

target_compile_definitions(libfastfetch PUBLIC _GNU_SOURCE _XOPEN_SOURCE __STDC_WANT_LIB_EXT1__=1)
if(WIN32)
target_compile_definitions(libfastfetch PUBLIC WIN32_LEAN_AND_MEAN=1)
Expand Down Expand Up @@ -856,6 +893,7 @@ elseif(BSD)
target_link_libraries(libfastfetch
PRIVATE "m"
PRIVATE "usbhid"
PRIVATE "devstat"
)
elseif(ANDROID)
CHECK_LIBRARY_EXISTS(-l:libandroid-wordexp.a wordexp "" HAVE_LIBANDROID_WORDEXP_STATIC)
Expand Down Expand Up @@ -922,6 +960,13 @@ if(WIN32)
target_sources(flashfetch
PRIVATE src/util/windows/version.rc
)
elseif(APPLE)
target_link_options(fastfetch
PRIVATE LINKER:-sectcreate,__TEXT,__info_plist,Info.plist
)
target_link_options(flashfetch
PRIVATE LINKER:-sectcreate,__TEXT,__info_plist,Info.plist
)
endif()

###################
Expand Down
Loading