|
@@ -16,16 +16,16 @@ use std::thread;
|
|
|
fn main() {
|
|
|
let config_path = env::args().nth(1).unwrap_or("./panel.toml".to_string());
|
|
|
let cfg = config::load(&config_path);
|
|
|
- let cfg = Arc::new(cfg);
|
|
|
|
|
|
+ let mut topbar = bar::Bar::new(true, &cfg);
|
|
|
+ let mut botbar = bar::Bar::new(false, &cfg);
|
|
|
+
|
|
|
+ let cfg = Arc::new(cfg);
|
|
|
let (tx, rx) = mpsc::channel::<Message>();
|
|
|
make_thread(&tx, &cfg, external::external);
|
|
|
make_thread(&tx, &cfg, sensors::sensors);
|
|
|
make_thread(&tx, &cfg, netspeed::netspeed);
|
|
|
|
|
|
- let mut topbar = bar::Bar::new(true);
|
|
|
- let mut botbar = bar::Bar::new(false);
|
|
|
-
|
|
|
let mut data = store::Store::new();
|
|
|
|
|
|
loop {
|