From 5ba33f846129f3e6c0505b19f94634b24505e828 Mon Sep 17 00:00:00 2001 From: Vaxry <43317083+vaxerski@users.noreply.github.com> Date: Sun, 26 Apr 2026 15:16:36 +0100 Subject: config/lua: init lua config manager, use lua if available (#13817) Adds a new lua config manager, which will automatically be used if there is a lua config present. --- src/config/lua/DefaultConfig.hpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/config/lua/DefaultConfig.hpp (limited to 'src/config/lua/DefaultConfig.hpp') diff --git a/src/config/lua/DefaultConfig.hpp b/src/config/lua/DefaultConfig.hpp new file mode 100644 index 00000000..6fe92679 --- /dev/null +++ b/src/config/lua/DefaultConfig.hpp @@ -0,0 +1,18 @@ +#pragma once + +#include + +inline constexpr std::string_view AUTOGENERATED_PREFIX = R"#( +-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- +-- AUTOGENERATED HYPRLAND CONFIG. -- +-- EDIT THIS CONFIG ACCORDING TO THE WIKI INSTRUCTIONS. -- +-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- + +hl.config({ autogenerated = true }) -- remove this line to remove the warning + +)#"; +inline constexpr char EXAMPLE_CONFIG_BYTES[] = { +#embed "../../../example/hyprland.lua" +}; + +inline constexpr std::string_view EXAMPLE_CONFIG = {EXAMPLE_CONFIG_BYTES, sizeof(EXAMPLE_CONFIG_BYTES)}; -- cgit v1.2.3