Files
waybar/src/modules
Imran Haider 92875711c6 Search for the first hwmon* directory
Background and Motivation
-------------------------
When the `hwmon-path-abs` and the `input-filename` fields are used for
the temperature module, we evaluated the following path:

```
[hwmon-path-abs] / [gap] / [input-filename]
```

where `gap` is the first file or directory in the `hwmon-path-abs`
directory. This usually works but it doesn't seem to work for NVME or
WiFi temperature sensors. For those cases, there are a bunch of other
files in the `hwmon-path-abs` directory. In the bad case, the first
selected file is not the one with the prefix `hwmon` and we end up
checking the wrong location for the `input-filename`.

Change description
------------------
We are simply going through the `hwmon-path-abs` directory and searching
for the first file/directory that begins with `hwmon`.

Test case
---------
I tested this on a AMD based Framework 13 laptop.
2024-02-05 21:40:24 -05:00
..
2023-09-13 23:25:39 +02:00
2023-06-04 12:45:33 +02:00
2023-03-08 14:35:07 +00:00
2023-10-31 23:31:58 +03:00
2023-06-05 18:29:19 +08:00
2023-12-11 00:17:35 +07:00
2023-11-28 19:39:08 +01:00
2024-01-21 19:08:23 -08:00
2023-10-15 17:52:12 -03:00
2023-10-15 17:52:12 -03:00
2024-01-30 09:07:37 +01:00
2023-09-13 21:59:42 +02:00
2023-12-28 19:38:01 -08:00
2023-10-09 15:26:07 -03:00
2023-07-04 19:48:04 +02:00
2023-10-21 17:06:02 +02:00
2024-01-30 09:07:37 +01:00