35 lines
673 B
Lua
35 lines
673 B
Lua
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
|