update: init input config

This commit is contained in:
2026-05-29 17:47:59 -04:00
parent a50825151c
commit d97d7219e5
3 changed files with 41 additions and 0 deletions
+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