Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release: v2.30.0 #1401

Merged
merged 61 commits into from
Nov 18, 2024
Merged
Changes from 1 commit
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
7220634
Packaging: update debian stuff [ci skip]
CarterLi Nov 4, 2024
211fd4b
Display: add `hdr-compatible`
CarterLi Nov 5, 2024
40671c7
Monitor: don't display `()` if display name is not available
CarterLi Nov 5, 2024
ef974ef
Bluetooth (macOS): support battery level detection
CarterLi Nov 5, 2024
9a34cb9
Bluetooth (macOS): normalize mac address strings
CarterLi Nov 5, 2024
f69a9da
CMake: Add initial support for MidnightBSD (#1377)
laffer1 Nov 5, 2024
8f750da
Bluetooth (Windows): fix mac address detection
CarterLi Nov 5, 2024
2389d7b
FFstrbuf: correct definition of `StrStrIA`
CarterLi Nov 6, 2024
7396208
Logo (Builtin): fix Lilidog
CarterLi Nov 6, 2024
acb38fa
Bluetooth (Windows): detect battery (WIP)
CarterLi Nov 5, 2024
07f2a71
Bluetooth (Windows): detect battery level
CarterLi Nov 9, 2024
3fa0d1a
Host (macOS): add HwModel support for new Mac (2024) (#1381)
xiaoran007 Nov 9, 2024
837903e
DisplayServer: fix deprecation warnings
CarterLi Nov 9, 2024
0284e4c
IO: optimize createSubfolders (#1382)
apocelipes Nov 10, 2024
7b81ffc
FFstrbuf: fix small FFstrbuf allocations in ffStrbufEnsureFree (#1383)
apocelipes Nov 10, 2024
7d406bb
Logo (Builtin): add MidnightBSD
CarterLi Nov 10, 2024
7fab6f2
Packages (BSD): support mport
CarterLi Nov 10, 2024
59c6665
Version (MidnightBSD): support libc version detection
CarterLi Nov 10, 2024
f98e6c9
Sound (BSD): trim device names
CarterLi Nov 10, 2024
4534f18
Battery: don't print index in multi-battery device
CarterLi Nov 10, 2024
d10c147
Disk: be able to print disk indices
CarterLi Nov 10, 2024
08a92a4
CPU (OpenBSD): support CPU temp detection
CarterLi Nov 10, 2024
4f9645e
Logo (Builtin): add Unifi
CarterLi Nov 10, 2024
f9713d5
OS (Android): display android icon
CarterLi Nov 10, 2024
f989a1a
Doc: fix typo in README (#1385) [ci skip]
emilyastranova Nov 10, 2024
07d0743
Logo (Builtin): add cosmicDE logo (#1386)
Tiuxi Nov 10, 2024
0a61031
tests: add FFstrbuf smallest allocation test & minor fix (#1387)
apocelipes Nov 10, 2024
4799f92
Revert "IO: optimize createSubfolders (#1382)" (#1390)
CarterLi Nov 11, 2024
5e7d9ed
Packages (Linux): add qi support
CarterLi Nov 10, 2024
830c71d
DisplayServer (NetBSD): detect WM / DE by process name
CarterLi Nov 10, 2024
c368908
Shell (macOS): try fixing segfault in old macOS
CarterLi Nov 11, 2024
7c8250c
StringUtil: rename `ffStrCopy` and correctly reflect its usage
CarterLi Nov 11, 2024
748b7df
Smbios: clean up more garbage values
CarterLi Nov 12, 2024
e618303
Media (macOS): try fixing error `CFStringGetCString() failed`
CarterLi Nov 12, 2024
644458b
CPU (macOS): try fixing CPU freq detection on Apple M4
CarterLi Nov 12, 2024
c70c37c
GPU (macOS): apply the same logic as CPU just in case
CarterLi Nov 12, 2024
bccf241
Scripts: Add python script to generate man page (#1392)
Tiuxi Nov 13, 2024
5a1be25
Scripts: make `gen-pciids.py` executable
CarterLi Nov 13, 2024
fe57b28
Scripts: clean up `gen-man.py`
CarterLi Nov 13, 2024
d7fa041
CMake: use `gen-man.py` to generate man file
CarterLi Nov 13, 2024
5efb879
Util (macOS): cleanup `cf_helpers.c`
CarterLi Nov 13, 2024
2cfc8ec
Processing (macOS): fix exe path detection
CarterLi Nov 13, 2024
1d92bf8
IO (macOS): fix logo fails to load from symlinked files
CarterLi Nov 13, 2024
bad85a5
Host (Android): detect marketing name of vivo smartphone
CarterLi Nov 13, 2024
e821a99
CPU (Linux): add more Apple SOC code names
CarterLi Nov 13, 2024
97e1b98
Global: pack all enums and make flag enums unsigned
CarterLi Nov 14, 2024
c9e3f8d
Global: support percent type config in module level
CarterLi Nov 14, 2024
1c41c6c
Percent: allow use enum to set type value in JSON config
CarterLi Nov 14, 2024
6801fe3
Doc: update schema for percent type config
CarterLi Nov 14, 2024
782af25
Percent: in custom format, only set num and bar string if enabled in …
CarterLi Nov 14, 2024
e77a4e8
Doc: update changelog [ci skip]
CarterLi Nov 14, 2024
b8ec070
Logo (Builtin): update openSUSE Tumbleweed
CarterLi Nov 15, 2024
563ed58
Scripts: `gen-man.py` honors SOURCE_DATE_EPOCH. (#1400)
Dariqq Nov 15, 2024
56eb8b8
NetIO (macOS): fix 32bit trancation
CarterLi Nov 15, 2024
9f314a2
NetIO (BSD): add txDrops detection if supported
CarterLi Nov 15, 2024
e5451b6
NetIO (BSD): remove unnecessary checks
CarterLi Nov 15, 2024
b7a9fe5
Terminal (Linux): support tilix version detection
CarterLi Nov 15, 2024
ba7d3ed
GPU (Windows): fix a bad assignment
CarterLi Nov 15, 2024
dcdf2b5
Display: concat flags
CarterLi Nov 15, 2024
a73a308
Doc: remove guix package installer as it's outdated [ci skip]
CarterLi Nov 18, 2024
dbb6a4b
Release: v2.30.0
CarterLi Nov 18, 2024
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
Prev Previous commit
Next Next commit
Battery: don't print index in multi-battery device
CarterLi committed Nov 10, 2024
commit 4534f185255141f3eb4c26da9b1edcbcf9a96c53
4 changes: 2 additions & 2 deletions src/modules/battery/battery.c
Original file line number Diff line number Diff line change
@@ -41,7 +41,7 @@ static void printBattery(FFBatteryOptions* options, FFBatteryResult* result, uin

if(options->moduleArgs.outputFormat.length == 0)
{
ffPrintLogoAndKey(key.chars, index, &options->moduleArgs, FF_PRINT_TYPE_NO_CUSTOM_KEY);
ffPrintLogoAndKey(key.chars, 0, &options->moduleArgs, FF_PRINT_TYPE_NO_CUSTOM_KEY);

FF_STRBUF_AUTO_DESTROY str = ffStrbufCreate();
bool showStatus =
@@ -100,7 +100,7 @@ static void printBattery(FFBatteryOptions* options, FFBatteryResult* result, uin
ffPercentAppendBar(&capacityBar, result->capacity, options->percent, &options->moduleArgs);
FF_STRBUF_AUTO_DESTROY tempStr = ffStrbufCreate();
ffTempsAppendNum(result->temperature, &tempStr, options->tempConfig, &options->moduleArgs);
FF_PRINT_FORMAT_CHECKED(key.chars, index, &options->moduleArgs, FF_PRINT_TYPE_NO_CUSTOM_KEY, FF_BATTERY_NUM_FORMAT_ARGS, ((FFformatarg[]) {
FF_PRINT_FORMAT_CHECKED(key.chars, 0, &options->moduleArgs, FF_PRINT_TYPE_NO_CUSTOM_KEY, FF_BATTERY_NUM_FORMAT_ARGS, ((FFformatarg[]) {
FF_FORMAT_ARG(result->manufacturer, "manufacturer"),
FF_FORMAT_ARG(result->modelName, "model-name"),
FF_FORMAT_ARG(result->technology, "technology"),