From 463aae993ca7b14e6900c8244166011d90276904 Mon Sep 17 00:00:00 2001 From: pierre Date: Fri, 23 Aug 2024 18:02:20 +0200 Subject: [PATCH] update readme --- README.md | 23 ++++++++++------------- src/module.rs | 3 +-- 2 files changed, 11 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 69b58ed..58f7ac7 100644 --- a/README.md +++ b/README.md @@ -15,13 +15,7 @@ Like [xmobar](https://codeberg.org/xmobar/xmobar), --- -- [features](#features) -- [prerequisite](#prerequisite) -- [install](#install) -- [configuration](#configuration) -- [usage](#usage) -- [credits](#credits) -- [license](#license) +[features](#features) ∎ [prerequisite](#prerequisite) ∎ [install](#install) ∎ [configuration](#configuration) ∎ [usage](#usage) ∎ [credits](#credits) ∎ [license](#license) ### features @@ -33,8 +27,9 @@ Like [xmobar](https://codeberg.org/xmobar/xmobar), * brightness * cpu usage, frequency and temperature * memory (percent or used/total in gigabyte/gibibyte) -* current weather condition and temperature ([OpenWeather](https://openweathermap.org/)) -* dynamic and customizable labels +* weather current condition and + temperature ([OpenWeatherMap](https://openweathermap.org/)) +* dynamic and customizable labels, play nicely with icons and [nerd-fonts](https://www.nerdfonts.com/) * customizable format output * configuration in YAML @@ -127,8 +122,8 @@ weather: location: 'Metz' unit: metric icons: - clear_sky: ['󰖙', '󰖔'] # day, night - partly_cloudy: ['󰖕', '󰼱'] + clear_sky: [ '󰖙', '󰖔' ] # day, night + partly_cloudy: [ '󰖕', '󰼱' ] cloudy: '󰖐' very_cloudy: '󰖐' shower_rain: '󰖖' @@ -147,7 +142,8 @@ baru -h When spawning baru from your WM/status-bar you can pass the `-l file` flag\ if you want baru to log into a file (useful for debugging).\ -Logs are written to the directory `$XDG_CACHE_HOME/baru/` (default to `$HOME/.cache/baru/`). +Logs are written to the directory `$XDG_CACHE_HOME/baru/` (default +to `$HOME/.cache/baru/`). ```shell baru -l file @@ -155,7 +151,8 @@ baru -l file ### implementation details -Baru gathers the information from `/sys` and `/proc` filesystems (filled by the kernel).\ +Baru gathers the information from `/sys` and `/proc` filesystems (filled by the +kernel).\ Except audio and network modules which use C libraries.\ All modules are threaded and loaded on-demand.\ Thanks to this modular design (as well Rust and C), baru is lightweight and diff --git a/src/module.rs b/src/module.rs index cfcbfb0..d2083aa 100644 --- a/src/module.rs +++ b/src/module.rs @@ -235,8 +235,7 @@ impl<'a> ModuleData<'a> { ModuleState::Failed } Err(_) => { - let msg = format!("[{}] module panicked", self.module.name()); - error!("{}", &msg); + error!("[{}] module panicked", self.module.name()); ModuleState::Failed } };