configurations things

This commit is contained in:
2026-09-13 18:32:37 +01:00
parent a14b6f4967
commit cc67cd25e9
9 changed files with 122 additions and 27 deletions
+4 -1
View File
@@ -1,9 +1,12 @@
use serde::{Deserialize, Serialize};
use toml::Table;
use crate::display::Display;
#[derive(Serialize, Deserialize)]
pub struct BarbarConfig {
pub monitor: Option<String>,
#[serde(default)]
pub display: Display,
pub ups: Option<i32>, // Updates per second
pub order: ModuleOrder,
pub modules: Option<Table>, // 'clock': [clock settings]