36 lines
740 B
Lua
36 lines
740 B
Lua
local M = {}
|
|
local settings = require("lua.lib.settings")
|
|
|
|
M.confs = {
|
|
input = { touchpad = {} },
|
|
gestures = {},
|
|
}
|
|
|
|
if settings["profile"] == "desktop" then
|
|
M.confs.input = table.insert(M.confs.input, { numlock_by_default = true })
|
|
elseif settings["profile"] == "laptop" then
|
|
M.confs.gestures = table.insert(M.confs.gestures, { workspace_swipe_touch = true })
|
|
M.gestures = {
|
|
{
|
|
fingers = 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
|