feat: start new lua-based hyprland config

This commit is contained in:
2026-06-13 16:12:20 +02:00
parent d6d9a28161
commit a253ce56b7
22 changed files with 376 additions and 345 deletions
+51
View File
@@ -0,0 +1,51 @@
--- @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