Carter Li
|
d60b25e424
|
Refactor: renames src/util to src/common
|
2026-01-06 09:48:38 +08:00 |
|
Carter Li
|
61690a1804
|
Util: moves util/io/io.h to util/io.h
|
2026-01-06 09:13:40 +08:00 |
|
李通洲
|
1e43e35857
|
Chore: merges common/* into util/*
|
2026-01-05 17:54:41 +08:00 |
|
李通洲
|
61f2823903
|
Global: fixes -ffast-math compatibility
Unifies unset double handling using `-DBL_MAX` sentinel
Fixes #1894
|
2025-08-14 10:01:34 +08:00 |
|
李通洲
|
48dd5976e1
|
Battery (Linux): fix critical state detection
|
2025-03-25 22:08:49 +08:00 |
|
Carter Li
|
e73d6db2e5
|
Battery (Linux): improve performance by specifying O_PATH
|
2024-10-15 10:18:26 +08:00 |
|
Carter Li
|
1c598add39
|
Chore (Linux): always ignore hidden files when enumerating directories
|
2024-10-15 10:16:58 +08:00 |
|
Carter Li
|
49076ec69d
|
Battery (Linux): simplify
|
2024-10-12 10:41:25 +08:00 |
|
Carter Li
|
1178f46aac
|
Battery (Linux): check if AC is connected
|
2024-10-12 09:38:19 +08:00 |
|
Carter Li
|
68406cd044
|
IO (Linux): use openat to simplify code
|
2024-10-11 16:36:08 +08:00 |
|
Carter Li
|
782474b068
|
Battery (Linux): revert back not to use uevent
Reading `uevent` is slow...
|
2024-10-11 16:24:19 +08:00 |
|
Carter Li
|
27910cf6ec
|
Battery (Linux): calcuate time remaining with current & charge if time_to_empty is unavailable
|
2024-10-10 08:38:58 +00:00 |
|
Carter Li
|
daab70fafc
|
Battery (Linux): rewrite with uevent, add remaining time support
|
2024-10-10 16:04:27 +08:00 |
|
李通洲
|
9b4053e9dc
|
Chore: remove temps_linux
|
2024-09-24 01:51:45 +00:00 |
|
李通洲
|
3b1b81437e
|
Battery (Linux): add comments [ci skip]
|
2024-07-06 09:04:23 +08:00 |
|
李通洲
|
217f98a36c
|
Global: tidy json result formats
|
2024-05-03 13:56:19 +08:00 |
|
Carter Li
|
b602bb20c2
|
Battery (Linux): print the same format of battery status as other platforms
|
2024-02-08 14:10:51 +08:00 |
|
李通洲
|
5f638a67ed
|
Battery: rename manufacturerDate to manufactureDate
|
2024-01-10 19:03:58 +08:00 |
|
李通洲
|
12155e029b
|
Battery (Linux): support manufacture date detection
|
2024-01-09 23:08:19 +08:00 |
|
李通洲
|
7926b74917
|
Battery: detect manufacturer date
|
2024-01-09 22:58:32 +08:00 |
|
Carter Li
|
61af59fc00
|
Battery (Linux): fix temperature detection
|
2024-01-09 16:34:04 +08:00 |
|
李通洲
|
ea3ea196aa
|
Battery (Linux): simplify temp detection
|
2024-01-05 11:01:32 +08:00 |
|
Carter Li
|
b6b1993f62
|
Battery (Linux): code refactor, support serial number detection
|
2024-01-04 15:16:51 +08:00 |
|
Carter Li
|
cd0109c382
|
Battery (Linux): remove option --battery-dir
It was added in c5c3cecb93 but there was no comment or issues linked to indicate why it was necessary.
`/sys/class/power_supply` is standardized in <https://www.kernel.org/doc/Documentation/ABI/testing/sysfs-class-power>. I don't I want to support non-standard platform unless proper reason is given
|
2024-01-04 14:18:33 +08:00 |
|
Carter Li
|
b1f54ab7a2
|
Battery (Linux): fix temp detection for asahi
|
2023-12-26 16:44:13 +08:00 |
|
Carter Li
|
5a372882fa
|
Battery (Linux): tidy
|
2023-12-26 16:44:13 +08:00 |
|
apocelipes
|
e7aa6c3757
|
fix(Battery): fix overflow and uninitializations of battery cycle counts
|
2023-12-25 06:45:47 +00:00 |
|
apocelipes
|
113b1b8fc2
|
fix: fix trailing space
|
2023-12-23 02:55:14 +00:00 |
|
李通洲
|
f5b987dba9
|
Battery (Windows): detect cycle count
|
2023-11-06 19:40:40 +08:00 |
|
李通洲
|
f8eabdd8a6
|
Battry (Linux): try detecting cycle count and temperature
|
2023-11-06 19:08:17 +08:00 |
|
李通洲
|
3669f2aee4
|
Battery: rename BatteryResult to FFBatteryResult
|
2023-09-05 15:29:46 +08:00 |
|
李通洲
|
d0f093c567
|
Global: make FFinstance instance a global variable
As discussed in https://github.com/fastfetch-cli/fastfetch/discussions/473
|
2023-06-24 17:28:05 +08:00 |
|
李通洲
|
baa8992322
|
Global: refactor strcmp() == 0 to ffStrEquals()
|
2023-06-19 17:11:57 +08:00 |
|
李通洲
|
8a284ae9a1
|
Battery: use module options
|
2023-06-12 10:32:35 +08:00 |
|
李通洲
|
c7119498a3
|
Global: major FFstrbuf related code refactor
|
2023-06-10 09:15:15 +08:00 |
|
李通洲
|
4e3e469ba8
|
Battery: major code refactoring
ditto
|
2023-06-10 09:15:15 +08:00 |
|
Linus Dierheimer
|
a1ea7804f3
|
IO: Separate platform specific implementations
|
2023-01-28 12:40:12 +01:00 |
|
李通洲
|
0fd63084dc
|
Global: fix other possible bugs where enumerating directories without ignoring . and ..
|
2023-01-09 10:45:51 +08:00 |
|
李通洲
|
e13c88cea6
|
Global: support bar output for percentage value #294
|
2022-10-22 16:15:12 +08:00 |
|
李通洲
|
51c70bc44a
|
Temps: support macOS
|
2022-09-26 15:29:11 +08:00 |
|
李通洲
|
5498b0b042
|
PowerAdapter: make it a seperated module
|
2022-09-23 15:33:23 +08:00 |
|
李通洲
|
6e09157235
|
Battery: add power adapter support ( macOS )
|
2022-09-22 19:07:18 +08:00 |
|
Carter Li
|
d5500ad4f7
|
Battery: fix Intel compatibility
`MaxCapacity` on Intel MBP is not 100
|
2022-09-17 01:49:00 +08:00 |
|
李通洲
|
f362fdb01d
|
Battery: move detection code into src/detection
Prepare for macOS implementation
|
2022-09-16 23:43:08 +08:00 |
|