blob: 23960afe50c2ad0a0cf4abf9c3816fbe689e54ff (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
use std::process::Command;
use std::thread;
use std::time::Duration;
mod date;
mod disk;
mod load_config;
mod mem;
fn main() {
let settings = load_config::load().unwrap();
loop {
let args = format!(
"{}{}{}",
disk::disk_free(&settings),
mem::mem(&settings).unwrap(),
date::fmt_date(&settings)
);
Command::new("xsetroot")
.arg("-name")
.arg(args)
.output()
.unwrap();
thread::sleep(Duration::new(1, 0));
}
}
|