chore: repo cleanup for v0.2.0
Some checks failed
Mirror to GitHub / mirror (push) Successful in 38s
Build and publish package / package (push) Failing after 1m12s

- 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

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PxgMEoa2PWNkKnW88pbMBM
This commit is contained in:
Breadway 2026-06-24 07:05:07 +08:00
parent cd00e6ba9d
commit e363e51c87
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);

View file

@ -32,7 +32,7 @@ fn volume_watcher(tx: mpsc::Sender<OsdEvent>) {
return;
};
let stdout = child.stdout.take().unwrap();
let Some(stdout) = child.stdout.take() else { return };
let reader = BufReader::new(stdout);
for line in reader.lines().map_while(Result::ok) {

View file

@ -48,6 +48,7 @@ fn load_css() -> String {
border-radius: 4px; padding: 2px 6px; }}\
.wifi-popover-row:hover {{ background: alpha({on_bg}, 0.08); }}\
.wifi-popover-row-active {{ color: {accent}; }}\
.wifi-popover-row-unsaved {{ opacity: 0.4; }}\
.wifi-popover-loading {{ opacity: 0.5; padding: 8px; }}\
.media-widget {{ border-radius: 4px; padding: 0 6px; cursor: pointer; }}\
.media-widget:hover {{ background: alpha({on_bg}, 0.10); }}\