Carter Li
b0340d5581
DisplayServer: merge serverVender into wmProtocolName
...
Fix #1888
2025-08-11 09:16:05 +08:00
aequabit
1124342eda
Display (Linux): show brand of Xserver in WM section ( #1888 )
...
* Display: add server vendor string
* Display (X11): fetch server vendor string using XCB/Xlib
* WM: show server vendor string when not empty
* Display (XCB): use proper string helper function
* Display (X11): shorten "The X.Org Foundation" to "Xorg"
2025-08-11 09:03:23 +08:00
李通洲
1b0a65ecf2
Wifi: updates default WiFi percentage thresholds
2025-08-08 14:59:39 +08:00
李通洲
fa4e11c73b
JsonConfig: write all flags when generating config file
2025-08-05 16:47:48 +08:00
李通洲
75d2c668d0
Modules: refactor module option handling for static allocation
...
Moves module option structs out of global config and removes dynamic allocation, using static buffers and size assertions for safer, simpler management.
Refactors module initialization and destruction to work with isolated option structs, eliminating the need for the previous modules container and related code.
Unifies module option header usage and updates detection logic to leverage statically-sized option buffers, improving encapsulation and maintainability.
Simplifies module function signatures and reduces coupling between modules and config.
Enhances future extensibility and reliability by enforcing max size constraints and removing unnecessary indirections.
2025-08-04 14:46:01 +08:00
李通洲
559082806b
Modules: export module info
2025-08-04 00:06:28 +08:00
李通洲
6f8d276545
Modules: add init and destroy option callbacks to module info
2025-08-03 18:40:53 +08:00
李通洲
dd4f006b5f
GPU: support "hideType": null
2025-08-03 10:22:32 +08:00
李通洲
c491c9e8fc
Display: add compactMode: null; improve json schema
2025-08-03 10:22:32 +08:00
李通洲
094d736d38
Modules: remove all parseCommandOptions and related stuff
2025-08-03 10:22:32 +08:00
李通洲
980e552eba
Display: allow "compactType": null; improve json schema
2025-08-03 10:22:32 +08:00
李通洲
4a141c3f57
Disk: add missing JSON config options
2025-08-03 10:22:32 +08:00
李通洲
0b02543ef2
JsonConfig: refactor JSON key handling to improve safety and consistency
...
Also make keys case-sensitive
2025-08-02 18:51:03 +08:00
李通洲
3cef51ec4a
JsonConfig: refactor string buffer JSON handling for robustness
2025-08-02 17:41:19 +08:00
李通洲
eca3625165
Battery / Uptime: update document of custom format
2025-07-31 13:32:18 +08:00
李通洲
677e920dc8
Battery: address copilot feedback
2025-07-31 10:51:53 +08:00
李通洲
ce554dbdd0
Uptime / Battery: add formatted duration string in custom format
2025-07-30 15:03:23 +08:00
李通洲
a0174e8666
Global: add new unit related options
...
1. `--<module>-space-before-unit`
2. `--duration-abbreviation`
3. various code refactoring and cleanups
2025-07-30 15:03:23 +08:00
李通洲
8be419cfd6
DiskIO: fix wrong /s assignment in custom format
...
Fix #1871
2025-07-30 09:05:33 +08:00
李通洲
ca79bae36e
Packages (Windows): find scoop installation path by parsing scoop config file
2025-07-29 19:29:40 +08:00
Darloli
d2f2c76dfc
Version: correct the variable name 'name' to 'project-name'
2025-07-26 08:33:34 +08:00
Darloli
2d1ae1b4c5
Users: correct the variable name 'session' to 'session-name'
2025-07-26 08:33:34 +08:00
李通洲
316409ecc3
LocalIP: cleanup printing code
2025-07-24 20:12:48 +08:00
Carter Li
aa1201ffb8
Editor: correct the variable name full-path to path
...
Fix #1861
2025-07-22 22:06:26 +08:00
李通洲
b60996bcd1
Packages (Linux): remove qi support
...
Close #1858
2025-07-21 14:19:12 +08:00
李通洲
c79b67efc1
Modules: don't report errors when condition key is set
2025-07-18 16:16:38 +08:00
李通洲
30af91ce8e
Packages: add new option --packages-combined
2025-07-18 15:55:33 +08:00
李通洲
ea4fc7bdda
Separator: remove formatArgs
...
It makes no sense.
2025-07-16 10:46:47 +08:00
李通洲
6851e7b082
Uptime / Users: add years, days-of-year and year-fraction
...
Like what `Disk` has
2025-07-16 09:53:09 +08:00
李通洲
dde0c22195
Disk: add keys years, days-of-year and years-fraction
...
Fix #1847
2025-07-15 22:38:31 +08:00
李通洲
98738b6920
CPUUsage (Windows): detect perflib support dynamically based on OS version
2025-07-02 19:40:22 +08:00
李通洲
4abb183735
CPUUsage(Windows): add new method using Windows Performance Library
2025-07-01 20:53:46 +08:00
李通洲
c8d1d29017
Disk (Linux): hide /boot/firmware by default
2025-06-10 09:54:11 +08:00
李通洲
3d4a117093
Swap: support separated output
2025-06-04 15:02:02 +08:00
Carter Li
a0f579072f
Disk: add --disk-hide-fs
...
Fix #1762
2025-05-21 16:40:42 +08:00
Carter Li
d439ce8eb5
Disk: rename hiddenFolder to hideFolder; add docs
2025-05-21 15:09:19 +08:00
Carter Li
e2a714732a
Disk: add hiddenFolders (2)
2025-05-21 15:00:42 +08:00
李通洲
8eb8f710d0
Disk: add option --disk-hidden-folders
2025-05-19 18:32:56 +08:00
李通洲
4672b78481
Sound: don't show 255 in custom format
...
Fix #1750
2025-05-13 09:30:30 +08:00
Carter Li
ff3028c656
GPU: don't hide unknown type of GPUs by default
...
Fix #1742
2025-05-09 21:58:41 +08:00
李通洲
6e1ab12399
Memory / Swap: always initialize local variables
2025-05-08 23:17:22 +08:00
Samuli Thomasson
484e05eae3
GPU: optionally hide unknown GPUs ( #1742 )
...
The current default behavior of not hiding any GPUs is retained. The new
feature of hiding unknown or unrecognized GPUs can be enabled with
hide-type = "unknown".
2025-05-07 22:06:47 +08:00
Carter Li
599e0d393d
Display: use height to calculate scale factor
...
Seems more accurate
2025-05-01 21:28:04 +08:00
李通洲
969523ae8a
BIOS: normalize the module name
...
Fix #1721
2025-04-29 10:26:19 +08:00
李通洲
5d960ec744
Uptime: fix non-normalized time being shown
...
Fix #1720
2025-04-29 10:22:19 +08:00
apocelipes
3b36b8ca57
Global: use ARRAY_SIZE ( #1718 )
2025-04-28 21:22:04 -05:00
李通洲
9cda7e20fb
Chore: simplify fastfetch.h
2025-04-14 10:28:01 +08:00
李通洲
3c291f1af9
Platform: retrieve full user name
2025-04-09 16:15:23 +08:00
Rabindra Dhakal
8d5d8b4c90
Packages (Linux): add soar packages count ( #1531 )
...
* add soar packages count
* use || instead of concat for better compatibility with older SQLite versions
* convert package flags to 64-bit
2025-04-05 23:54:27 +08:00
李通洲
eca9f626a5
Separator: fix outputColor doesn't work when length is set
...
Fix #1644
2025-03-25 23:22:25 +08:00