diff --git a/lua/conf/env.lua b/lua/conf/env.lua index fb3038c..88c582f 100644 --- a/lua/conf/env.lua +++ b/lua/conf/env.lua @@ -1,3 +1,5 @@ +local settings = require("lua.lib.settings") + local M = {} ---@type table @@ -7,6 +9,10 @@ M.envs = { QT_AUTO_SCREEN_SCALE_FACTOR = "1", } +if settings["locale"] and settings["locale"] ~= "" then + M.envs["LANG"] = settings["locale"] +end + function M.load() for name, value in pairs(M.envs) do hl.env(name, value) diff --git a/lua/lib/settings.lua b/lua/lib/settings.lua index 51feef6..62bfca9 100644 --- a/lua/lib/settings.lua +++ b/lua/lib/settings.lua @@ -12,6 +12,9 @@ settings["touchpad_natural_scroll"] = true ---@type string settings["kb_layout"] = "us" +---@type string +settings["locale"] = "" + ---@type "dwindle"|"master"|"scrolling"|"monocle" settings["default_layout"] = "dwindle" @@ -45,7 +48,7 @@ settings["modules"] = { ---@type table settings["plugins"] = { - hyprexpo = false + hyprexpo = false, } return require("lua.lib.utils").extend_config(settings, "lua.user.settings")