aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt5
-rw-r--r--src/config.cpp3
2 files changed, 6 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index f5aaa1d..54e2da6 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -81,3 +81,8 @@ set(LINK_LIBCXX OFF CACHE BOOL "Link against LLVMs libc++")
add_subdirectory(client-lib)
add_subdirectory(src)
+
+install(
+ FILES layers.json
+ DESTINATION /etc
+ COMPONENT "runtime")
diff --git a/src/config.cpp b/src/config.cpp
index 1393fdd..b610c6e 100644
--- a/src/config.cpp
+++ b/src/config.cpp
@@ -20,8 +20,7 @@ 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";
+ this->cfg["layers.json"] = getenv("LAYERS_JSON") ?: "/etc/layers.json";
}
} // namespace wm