Compare commits

..

2 Commits

Author SHA1 Message Date
wyj d97d7219e5 update: init input config 2026-05-29 17:47:59 -04:00
wyj a50825151c update: init envs conf 2026-05-29 17:10:21 -04:00
4 changed files with 58 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
local M = {}
---@type table<string, string>
M.envs = {
XDG_SESSION_TYPE = "wayland",
XDG_SESSION_DESKTOP = "Hyprland",
QT_AUTO_SCREEN_SCALE_FACTOR = "1",
}
function M.load()
for name, value in pairs(M.envs) do
hl.env(name, value)
end
end
return M
+2
View File
@@ -5,6 +5,8 @@ require("lua.conf.monitor")
require("lua.conf.wallpaper").load()
require("lua.conf.cursor").load()
require("lua.conf.env").load()
require("lua.conf.input").load()
require("lua.modules").load()
+34
View File
@@ -0,0 +1,34 @@
local M = {}
local settings = require("lua.lib.settings")
M.confs = {
input = { touchpad = {}, gestures = {} },
}
if settings["profile"] == "desktop" then
M.confs.input.numlock_by_default = true
elseif settings["profile"] == "laptop" then
M.confs.input.gestures.workspace_swipe_touch = true
M.gestures = {
{
fingures = 3,
direction = "horizontal",
action = "workspace",
},
}
end
M.confs.input.touchpad.natural_scroll = settings["touchpad_natural_scroll"]
M.confs.input.kb_layout = settings["kb_layout"]
function M.load()
hl.config(M.confs)
if M.gestures then
for _, gesture in pairs(M.gestures) do
hl.gesture(gesture)
end
end
end
return M
+6
View File
@@ -6,6 +6,12 @@ settings["hostname"] = ""
---@type "desktop"|"laptop"
settings["profile"] = "desktop"
---@type boolean
settings["touchpad_natural_scroll"] = true
---@type string
settings["kb_layout"] = "us"
---@type "catppuccin"|"catppuccin-mocha"
settings["colorscheme"] = "catppuccin"