chore: repo cleanup for v0.2.0
All checks were successful
Mirror to GitHub / mirror (push) Successful in 32s

- Fix read_cpu_temp loop: ok()? was aborting iteration on unreadable hwmon
  entries instead of continuing to the next; use let Ok(...) else continue
- Fix osd.rs: replace stdout.unwrap() with defensive let-else guard
- PKGBUILD: bump pkgver to 0.2.0, replace libpulse dep with wireplumber +
  pipewire-pulse + brightnessctl (actual runtime tools used)
- bakery.toml: same dep fix as PKGBUILD
- Cargo.toml: fix repository URL casing (breadway -> Breadway)
- theme.rs: add wifi-popover-row-unsaved opacity rule
This commit is contained in:
Breadway 2026-06-24 07:05:07 +08:00
parent 673b5c52cf
commit 31b2d10909
6 changed files with 7 additions and 6 deletions

View file

@ -298,7 +298,7 @@ async fn read_wifi() -> (String, &'static str) {
fn read_cpu_temp() -> Option<f32> {
for entry in fs::read_dir("/sys/class/hwmon").ok()?.flatten() {
let path = entry.path();
let name = fs::read_to_string(path.join("name")).ok()?;
let Ok(name) = fs::read_to_string(path.join("name")) else { continue };
if name.trim() == "k10temp" {
let raw = fs::read_to_string(path.join("temp1_input")).ok()?;
return Some(raw.trim().parse::<f32>().ok()? / 1000.0);