diff options
author | mustafa salih <mustafasalih1991@gmail.com> | 2020-12-22 07:30:27 +0300 |
---|---|---|
committer | mustafa salih <mustafasalih1991@gmail.com> | 2020-12-22 07:30:27 +0300 |
commit | d34ef0dd0392674d1a7a8f098b9c57945e96683a (patch) | |
tree | c55292749bfefcc6ac8643e2933949bf72973f63 /src/main.rs | |
parent | 7075f7cf2889076df5f932b17489eee01c6bcccd (diff) |
Added rsblocks.yml file and yaml parser to customize
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/main.rs b/src/main.rs index e69b5af..23960af 100644 --- a/src/main.rs +++ b/src/main.rs @@ -4,15 +4,18 @@ 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(), - mem::mem().unwrap(), - date::fmt_date("%d %b, %I:%M:%S %p") + disk::disk_free(&settings), + mem::mem(&settings).unwrap(), + date::fmt_date(&settings) ); Command::new("xsetroot") |