Jas-SinghFSU / HyprPanel

A Bar/Panel for Hyprland with extensive customizability.
MIT License
942 stars 65 forks source link

cpu temperature sensor path changes every boot #526

Open victorballester7 opened 5 days ago

victorballester7 commented 5 days ago

Describe the bug The path which I assing the CPU temperature module to read from changes from time to time. By changing I mean: /sys/devices/platform/coretemp.0/hwmon/hwmon4/temp1_input to /sys/devices/platform/coretemp.0/hwmon/hwmon5/temp1_input

Expected behavior Would it be possible to add a regex pattern of the form /sys/devices/platform/coretemp.0/hwmon/hwmon*/temp1_input ? Then, raise an error if the pattern matches 0 or more than 1 files (or in that latter cas eonly use the first one, and then raise a warning) I wanted to do a pull request but I wasn't able to make it working. I was using ls to oputput the file and Glib.spawn_command_line_sync, but I got no nice results.

Desktop (please complete the following information):