--- @param swap_escape boolean return function(swap_escape) hl.config({ inputs = { kb_options = swap_escape 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 = 1, 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