-
Notifications
You must be signed in to change notification settings - Fork 470
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #712 from fastfetch-cli/dev
Release v2.8.0
- Loading branch information
Showing
53 changed files
with
1,258 additions
and
505 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
fastfetch (2.7.1ubuntu2) jammy; urgency=medium | ||
|
||
* Ignore .git | ||
|
||
-- Carter Li <[email protected]> Wed, 07 Feb 2024 14:23:23 +0800 | ||
|
||
fastfetch (2.7.1ubuntu1) jammy; urgency=medium | ||
|
||
* Update build scripts | ||
|
||
-- Carter Li <[email protected]> Wed, 07 Feb 2024 13:53:37 +0800 | ||
|
||
fastfetch (2.7.1) jammy; urgency=medium | ||
|
||
* Initial release. | ||
|
||
-- Carter Li <[email protected]> Tue, 06 Feb 2024 15:01:11 +0800 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
12 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Source: fastfetch | ||
Section: universe/utils | ||
Priority: optional | ||
Maintainer: Carter Li <[email protected]> | ||
Build-Depends: libvulkan-dev, libwayland-dev, libxrandr-dev, libxcb-randr0-dev, libdconf-dev, libdbus-1-dev, libmagickcore-dev, libxfconf-0-dev, libsqlite3-dev, librpm-dev, libegl-dev, libglx-dev, libosmesa6-dev, ocl-icd-opencl-dev, libnm-dev, libpulse-dev, libdrm-dev, libddcutil-dev, libchafa-dev, directx-headers-dev, pkgconf, cmake (>= 3.12), debhelper (>= 11.2), dh-cmake, dh-cmake-compat (= 1), dh-sequence-cmake, dh-sequence-ctest, ninja-build | ||
Standards-Version: 4.0.0 | ||
Homepage: https://github.com/fastfetch-cli/fastfetch | ||
|
||
Package: fastfetch | ||
Architecture: any | ||
Depends: ${shlibs:Depends}, ${misc:Depends} | ||
Description: Fastfetch is a neofetch-like tool for fetching system information and displaying them in a pretty way. | ||
It is written mainly in C, with performance and customizability in mind. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ | ||
Upstream-Name: fastfetch | ||
Source: https://github.com/fastfetch-cli/fastfetch | ||
|
||
Files: * | ||
Copyright: 2024 fastfetch-cli | ||
License: Expat | ||
|
||
Files: src/3rdparty/yyjson/* | ||
Copyright: 2020 YaoYuan | ||
License: Expat |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
fastfetch_2.7.1ubuntu2_source.buildinfo universe/utils optional |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/usr/bin/env bash | ||
|
||
debuild -S -i -I | ||
dput ppa:zhangsongcui3371/fastfetch ~/fastfetch_*.changes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/usr/bin/make -f | ||
|
||
%: | ||
dh $@ --buildsystem=cmake+ninja | ||
|
||
override_dh_ctest_configure: | ||
dh_ctest_configure -- -DSET_TWEAK=OFF -DBUILD_TESTS=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
version=4 | ||
opts="filenamemangle=s%.*/@ANY_VERSION@%@PACKAGE@-$1.tar.gz%,searchmode=plain" \ | ||
https://api.github.com/repos/fastfetch-cli/fastfetch/releases?per_page=100 \ | ||
https://api.github.com/repos/fastfetch-cli/fastfetch/tarball/@ANY_VERSION@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,6 +50,7 @@ | |
"users", | ||
"bluetooth", | ||
"sound", | ||
"camera", | ||
"gamepad", | ||
"weather", | ||
"netio", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,6 +56,7 @@ | |
"users", | ||
"bluetooth", | ||
"sound", | ||
"camera", | ||
"gamepad", | ||
{ | ||
"type": "weather", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#pragma once | ||
|
||
#include "fastfetch.h" | ||
|
||
typedef struct FFCameraResult | ||
{ | ||
FFstrbuf name; | ||
FFstrbuf vendor; | ||
FFstrbuf id; | ||
FFstrbuf colorspace; | ||
uint32_t width; | ||
uint32_t height; | ||
} FFCameraResult; | ||
|
||
const char* ffDetectCamera(FFlist* result /* list of FFCameraResult */); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
#include "camera.h" | ||
|
||
#include "common/processing.h" | ||
#include "common/properties.h" | ||
|
||
#define FF_TERMUX_API_PATH FASTFETCH_TARGET_DIR_ROOT "/libexec/termux-api" | ||
#define FF_TERMUX_API_PARAM "CameraInfo" | ||
|
||
static inline void wrapYyjsonFree(yyjson_doc** doc) | ||
{ | ||
assert(doc); | ||
if (*doc) | ||
yyjson_doc_free(*doc); | ||
} | ||
|
||
const char* ffDetectCamera(FF_MAYBE_UNUSED FFlist* result) | ||
{ | ||
FF_STRBUF_AUTO_DESTROY buffer = ffStrbufCreate(); | ||
|
||
if(ffProcessAppendStdOut(&buffer, (char* const[]){ | ||
FF_TERMUX_API_PATH, | ||
FF_TERMUX_API_PARAM, | ||
NULL | ||
})) | ||
return "Starting `" FF_TERMUX_API_PATH " " FF_TERMUX_API_PARAM "` failed"; | ||
|
||
yyjson_doc* __attribute__((__cleanup__(wrapYyjsonFree))) doc = yyjson_read_opts(buffer.chars, buffer.length, 0, NULL, NULL); | ||
if (!doc) | ||
return "Failed to parse camera info"; | ||
|
||
yyjson_val* root = yyjson_doc_get_root(doc); | ||
if (!yyjson_is_arr(root)) | ||
return "Camera info result is not a JSON array"; | ||
|
||
yyjson_val* device; | ||
size_t idx, max; | ||
yyjson_arr_foreach(root, idx, max, device) | ||
{ | ||
FFCameraResult* camera = (FFCameraResult*) ffListAdd(result); | ||
{ | ||
const char* facing = yyjson_get_str(yyjson_obj_get(device, "facing")); | ||
if (facing) | ||
ffStrbufInitF(&camera->name, "builtin-%s", facing); | ||
else | ||
ffStrbufInitStatic(&camera->name, "Unknown"); | ||
} | ||
ffStrbufInit(&camera->vendor); | ||
ffStrbufInitS(&camera->id, yyjson_get_str(yyjson_obj_get(device, "id"))); | ||
yyjson_val* sizes = yyjson_arr_get_first(yyjson_obj_get(device, "jpeg_output_sizes")); | ||
if (yyjson_is_obj(sizes)) | ||
{ | ||
camera->width = (uint32_t) yyjson_get_uint(yyjson_obj_get(sizes, "width")); | ||
camera->height = (uint32_t) yyjson_get_uint(yyjson_obj_get(sizes, "height")); | ||
} | ||
else | ||
camera->width = camera->height = 0; | ||
ffStrbufInit(&camera->colorspace); | ||
} | ||
|
||
return NULL; | ||
} |
Oops, something went wrong.