diff --git a/.pkg/aur/PKGBUILD b/.pkg/aur/PKGBUILD index 14b709a..25a8d4d 100644 --- a/.pkg/aur/PKGBUILD +++ b/.pkg/aur/PKGBUILD @@ -3,7 +3,7 @@ pkgname=baru pkgver=0.1.0 pkgrel=1 -pkgdesc='A system monitor written in Rust and C' +pkgdesc='A simple system monitor for WM statusbar' arch=('x86_64') url='https://github.com/doums/baru' license=('MPL2') diff --git a/Cargo.toml b/Cargo.toml index 6679f63..eba86e1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,7 @@ [package] name = "baru" version = "0.4.0" +description = "A simple system monitor for WM statusbar" authors = ["pierre "] edition = "2021" links = "netlink,audio" diff --git a/README.md b/README.md index 1db3976..41b8261 100644 --- a/README.md +++ b/README.md @@ -3,11 +3,11 @@ ## baru -A simple system monitor for WM statusbars +A simple system monitor for WM statusbar ![baru](https://raw.githubusercontent.com/doums/baru/master/public/baru.png) -Baru is a lightweight system monitor for WM status-bars.\ +Baru is a lightweight system monitor for WM status-bar.\ It can be used as a provider with any status-bar that can read from `stdout`.\ Like [xmobar](https://codeberg.org/xmobar/xmobar), [lemonbar](https://github.com/LemonBoy/bar), diff --git a/baru.yaml b/baru.yaml index 33b0392..fba7bae 100644 --- a/baru.yaml +++ b/baru.yaml @@ -1,7 +1,7 @@ # List of all options # If the word "required" is mentioned, the corresponding option is required. -# Otherwise it is optional. +# Otherwise, it is optional. # # # # # diff --git a/src/modules/mic.rs b/src/modules/mic.rs index cff7021..165df64 100644 --- a/src/modules/mic.rs +++ b/src/modules/mic.rs @@ -10,7 +10,7 @@ use serde::{Deserialize, Serialize}; use std::sync::mpsc::Sender; use std::thread; use std::time::{Duration, Instant}; -use tracing::{debug, error, instrument}; +use tracing::{debug, instrument}; const PLACEHOLDER: &str = "-"; const TICK_RATE: Duration = Duration::from_millis(50); diff --git a/src/modules/sound.rs b/src/modules/sound.rs index d8d0e26..afb52ac 100644 --- a/src/modules/sound.rs +++ b/src/modules/sound.rs @@ -10,7 +10,7 @@ use serde::{Deserialize, Serialize}; use std::sync::mpsc::Sender; use std::thread; use std::time::{Duration, Instant}; -use tracing::{debug, error, instrument}; +use tracing::{debug, instrument}; const PLACEHOLDER: &str = "-"; const TICK_RATE: Duration = Duration::from_millis(50); diff --git a/src/modules/temperature.rs b/src/modules/temperature.rs index 2dd423c..1894478 100644 --- a/src/modules/temperature.rs +++ b/src/modules/temperature.rs @@ -67,12 +67,12 @@ impl<'a> Default for InternalConfig<'a> { } } -#[instrument] +#[instrument(skip(path))] fn check_input_file(path: &str, n: u32) -> bool { fs::metadata(format!("{path}/temp{n}_input")) .map(|m| m.is_file()) - .inspect_err(|_e| { - warn!("input file not found: temp{n}_input"); + .inspect_err(|e| { + warn!("input file not found `temp{n}_input`, {}", e); }) .unwrap_or(false) }