tony / oxwm

Branch: d5b3499
Switch branches/tags
master
tonybtw Added blocks... lol d5b3499 2025-10-04
20 lines · 347 B Raw Blame History
1 use anyhow::Result;
2 use std::time::Duration;
3
4 pub mod clock;
5 pub mod sep;
6 pub mod uname;
7
8 pub use clock::Clock;
9 pub use sep::Sep;
10 pub use uname::Uname;
11
12 pub trait Block {
13 fn content(&mut self) -> Result<String>;
14 fn interval(&self) -> Duration;
15 fn color(&self) -> u32;
16
17 fn on_click(&mut self) -> Result<()> {
18 Ok(())
19 }
20 }