basic battery module/service

This commit is contained in:
2026-09-16 11:06:12 +01:00
parent 120eaf5855
commit 63e1c0ee4c
10 changed files with 639 additions and 1 deletions
+2
View File
@@ -17,6 +17,7 @@ pub struct BarbarConfig {
#[serde(rename_all = "lowercase")]
pub enum Modules {
Audio,
Battery,
Clock,
Weather,
Workspaces,
@@ -26,6 +27,7 @@ impl Modules {
pub fn to_string(&self) -> &str {
match self {
Modules::Audio => "audio",
Modules::Battery => "battery",
Modules::Clock => "clock",
Modules::Weather => "weather",
Modules::Workspaces => "workspaces",