chore: repo cleanup for v0.2.0
All checks were successful
Mirror to GitHub / mirror (push) Successful in 32s
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:
parent
673b5c52cf
commit
31b2d10909
6 changed files with 7 additions and 6 deletions
|
|
@ -5,7 +5,7 @@ edition = "2021"
|
||||||
description = "Minimal status bar and notification daemon for Hyprland on Wayland"
|
description = "Minimal status bar and notification daemon for Hyprland on Wayland"
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
authors = ["Breadway <rileyhorsham@gmail.com>"]
|
authors = ["Breadway <rileyhorsham@gmail.com>"]
|
||||||
repository = "https://github.com/breadway/breadbar"
|
repository = "https://github.com/Breadway/breadbar"
|
||||||
keywords = ["wayland", "hyprland", "bar", "status-bar", "gtk4"]
|
keywords = ["wayland", "hyprland", "bar", "status-bar", "gtk4"]
|
||||||
categories = ["gui"]
|
categories = ["gui"]
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
name = "breadbar"
|
name = "breadbar"
|
||||||
description = "Minimal status bar and notification daemon for Hyprland"
|
description = "Minimal status bar and notification daemon for Hyprland"
|
||||||
binaries = ["breadbar"]
|
binaries = ["breadbar"]
|
||||||
system_deps = ["gtk4", "gtk4-layer-shell", "iw", "libpulse"]
|
system_deps = ["gtk4", "gtk4-layer-shell", "wireplumber", "pipewire-pulse", "brightnessctl", "iw"]
|
||||||
optional_system_deps = ["hyprland"]
|
optional_system_deps = ["hyprland"]
|
||||||
bread_deps = []
|
bread_deps = []
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
# Maintainer: Breadway <rileyhorsham@gmail.com>
|
# Maintainer: Breadway <rileyhorsham@gmail.com>
|
||||||
|
|
||||||
pkgname=breadbar
|
pkgname=breadbar
|
||||||
pkgver=0.1.0
|
pkgver=0.2.0
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="Minimal status bar and notification daemon for Hyprland"
|
pkgdesc="Minimal status bar and notification daemon for Hyprland"
|
||||||
arch=('x86_64')
|
arch=('x86_64')
|
||||||
|
|
@ -11,7 +11,7 @@ license=('MIT')
|
||||||
# default -flto=auto emits GCC LTO bitcode the Rust (lld) link cannot read,
|
# default -flto=auto emits GCC LTO bitcode the Rust (lld) link cannot read,
|
||||||
# causing undefined-symbol errors. Disable LTO.
|
# causing undefined-symbol errors. Disable LTO.
|
||||||
options=(!lto !debug)
|
options=(!lto !debug)
|
||||||
depends=('gtk4' 'gtk4-layer-shell' 'libpulse' 'iw')
|
depends=('gtk4' 'gtk4-layer-shell' 'wireplumber' 'pipewire-pulse' 'brightnessctl' 'iw')
|
||||||
optdepends=(
|
optdepends=(
|
||||||
'hyprland: workspace and window data integration'
|
'hyprland: workspace and window data integration'
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -298,7 +298,7 @@ async fn read_wifi() -> (String, &'static str) {
|
||||||
fn read_cpu_temp() -> Option<f32> {
|
fn read_cpu_temp() -> Option<f32> {
|
||||||
for entry in fs::read_dir("/sys/class/hwmon").ok()?.flatten() {
|
for entry in fs::read_dir("/sys/class/hwmon").ok()?.flatten() {
|
||||||
let path = entry.path();
|
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" {
|
if name.trim() == "k10temp" {
|
||||||
let raw = fs::read_to_string(path.join("temp1_input")).ok()?;
|
let raw = fs::read_to_string(path.join("temp1_input")).ok()?;
|
||||||
return Some(raw.trim().parse::<f32>().ok()? / 1000.0);
|
return Some(raw.trim().parse::<f32>().ok()? / 1000.0);
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@ fn volume_watcher(tx: mpsc::Sender<OsdEvent>) {
|
||||||
return;
|
return;
|
||||||
};
|
};
|
||||||
|
|
||||||
let stdout = child.stdout.take().unwrap();
|
let Some(stdout) = child.stdout.take() else { return };
|
||||||
let reader = BufReader::new(stdout);
|
let reader = BufReader::new(stdout);
|
||||||
|
|
||||||
for line in reader.lines().map_while(Result::ok) {
|
for line in reader.lines().map_while(Result::ok) {
|
||||||
|
|
|
||||||
|
|
@ -48,6 +48,7 @@ fn load_css() -> String {
|
||||||
border-radius: 4px; padding: 2px 6px; }}\
|
border-radius: 4px; padding: 2px 6px; }}\
|
||||||
.wifi-popover-row:hover {{ background: alpha({on_bg}, 0.08); }}\
|
.wifi-popover-row:hover {{ background: alpha({on_bg}, 0.08); }}\
|
||||||
.wifi-popover-row-active {{ color: {accent}; }}\
|
.wifi-popover-row-active {{ color: {accent}; }}\
|
||||||
|
.wifi-popover-row-unsaved {{ opacity: 0.4; }}\
|
||||||
.wifi-popover-loading {{ opacity: 0.5; padding: 8px; }}\
|
.wifi-popover-loading {{ opacity: 0.5; padding: 8px; }}\
|
||||||
.media-widget {{ border-radius: 4px; padding: 0 6px; cursor: pointer; }}\
|
.media-widget {{ border-radius: 4px; padding: 0 6px; cursor: pointer; }}\
|
||||||
.media-widget:hover {{ background: alpha({on_bg}, 0.10); }}\
|
.media-widget:hover {{ background: alpha({on_bg}, 0.10); }}\
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue