add config, a simple config interface. i.e. key-value-store
[staging/windowmanager.git] / src / config.cpp
1 //
2 // Created by mfritzsc on 8/1/17.
3 //
4
5 #include "config.hpp"
6
7 namespace wm {
8
9 config::config() : cfg() {
10    // Supply default values for these...
11    this->cfg["layers.json"] = getenv("LAYERS_JSON") ?: "../layers.json";
12    this->cfg["layout.json"] = getenv("LAYOUT_JSON") ?: "../layout.json";
13 }
14
15 }  // namespace wm