52 lines
953 B
Lua
52 lines
953 B
Lua
--- @param laptop_config boolean
|
|
return function(laptop_config)
|
|
hl.config({
|
|
input = {
|
|
kb_options = laptop_config and "caps:swapescape" or "",
|
|
kb_layout = "us",
|
|
kb_variant = "altgr-intl",
|
|
natural_scroll = true,
|
|
|
|
numlock_by_default = true,
|
|
repeat_delay = 400,
|
|
|
|
follow_mouse = 2,
|
|
mouse_refocus = true,
|
|
scroll_factor = 2,
|
|
accel_profile = "flat",
|
|
|
|
touchpad = {
|
|
disable_while_typing = true,
|
|
natural_scroll = true,
|
|
scroll_factor = 4,
|
|
},
|
|
|
|
focus_on_close = true,
|
|
|
|
sensitivity = 0,
|
|
},
|
|
gestures = {
|
|
workspace_swipe_distance = 200,
|
|
workspace_swipe_cancel_ratio = 0.3,
|
|
workspace_swipe_forever = true,
|
|
workspace_swipe_direction_lock = false,
|
|
},
|
|
})
|
|
|
|
hl.gesture({
|
|
fingers = 3,
|
|
direction = "horizontal",
|
|
action = "workspace",
|
|
})
|
|
hl.gesture({
|
|
fingers = 3,
|
|
direction = "down",
|
|
action = "close",
|
|
})
|
|
hl.gesture({
|
|
fingers = 3,
|
|
direction = "up",
|
|
action = "fullscreen",
|
|
})
|
|
end
|