diff --git a/core/internal/config/embedded/hypr-binds.lua b/core/internal/config/embedded/hypr-binds.lua index 6c48a90d..2488ab72 100644 --- a/core/internal/config/embedded/hypr-binds.lua +++ b/core/internal/config/embedded/hypr-binds.lua @@ -112,6 +112,9 @@ hl.bind("SUPER + mouse_up", hl.dsp.focus({ workspace = "e-1" })) hl.bind("SUPER + CTRL + mouse_down", hl.dsp.window.move({ workspace = "e+1" })) hl.bind("SUPER + CTRL + mouse_up", hl.dsp.window.move({ workspace = "e-1" })) +-- === Touchpad Gestures === +hl.gesture({ fingers = 3, direction = "horizontal", action = "workspace" }) + -- === Numbered Workspaces === hl.bind("SUPER + 1", hl.dsp.focus({ workspace = "1" })) hl.bind("SUPER + 2", hl.dsp.focus({ workspace = "2" })) diff --git a/core/internal/config/embedded/hyprland.lua b/core/internal/config/embedded/hyprland.lua index f23695f1..9427f4bf 100644 --- a/core/internal/config/embedded/hyprland.lua +++ b/core/internal/config/embedded/hyprland.lua @@ -13,6 +13,10 @@ hl.config({ input = { kb_layout = "us", numlock_by_default = true, + touchpad = { + tap_to_click = true, + natural_scroll = true, + }, }, general = { gaps_in = 5, diff --git a/docs/Hyprland_Lua_Migration.md b/docs/Hyprland_Lua_Migration.md index 3f3d77c7..97900d8c 100644 --- a/docs/Hyprland_Lua_Migration.md +++ b/docs/Hyprland_Lua_Migration.md @@ -48,6 +48,13 @@ fragments. keyboard shortcuts in `dms/binds-user.lua`, or use the Keyboard Shortcuts page in DMS Settings. +Stock configs include a 3-finger horizontal touchpad gesture for workspace +switching (`hl.gesture` in `dms/binds.lua`) and basic touchpad settings +(`tap_to_click`, `natural_scroll` in `hyprland.lua`). To customize or disable +gestures, add your own `hl.gesture(...)` lines to `dms/binds-user.lua`, or unset +a stock gesture with `action = "unset"` matching the original fingers, +direction, and modifiers. + Most other existing non-empty Lua fragments are preserved. ## Legacy Config Migration