From a156a120d1622aacef11abcc58fff1adb6a2f786 Mon Sep 17 00:00:00 2001 From: Marcus Fritzsch Date: Tue, 1 Aug 2017 17:13:56 +0200 Subject: add config, a simple config interface. i.e. key-value-store Signed-off-by: Marcus Fritzsch --- src/config.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/config.cpp (limited to 'src/config.cpp') diff --git a/src/config.cpp b/src/config.cpp new file mode 100644 index 0000000..1843639 --- /dev/null +++ b/src/config.cpp @@ -0,0 +1,15 @@ +// +// Created by mfritzsc on 8/1/17. +// + +#include "config.hpp" + +namespace wm { + +config::config() : cfg() { + // Supply default values for these... + this->cfg["layers.json"] = getenv("LAYERS_JSON") ?: "../layers.json"; + this->cfg["layout.json"] = getenv("LAYOUT_JSON") ?: "../layout.json"; +} + +} // namespace wm \ No newline at end of file -- cgit 1.2.3-korg