aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
blob: e412025e7ef33b82524130ef57b9fa0ab36d8693 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
mod config;
mod run;
mod types;
mod utils;
use std::env;
use std::process;

fn main() {
    // if X display is not found then exit the program
    if env::var("DISPLAY").is_err() {
        eprintln!("Error: No Display Running!");
        process::exit(1);
    };
    let config = config::load_config().unwrap();
    let blocks = types::Blocks::new();
    run::run(config, blocks);
}