1 2 3 4 5 6 7
use std::thread; use std::time::Duration; fn main() { darkmode::subscribe(|mode| println!("{mode:?}")).unwrap(); thread::sleep(Duration::from_secs(u64::MAX)); }