Merge pull request 'fix/workspace-swipe' (#3) from fix/workspace-swipe into main
Some checks failed
Mirror to GitHub / mirror (push) Failing after 2s

Reviewed-on: #3
This commit is contained in:
Breadway 2026-07-29 20:49:21 +08:00
commit 437eb35f34
2 changed files with 6 additions and 13 deletions

View file

@ -94,6 +94,12 @@ pcall(function()
bindings = binds.bindings, bindings = binds.bindings,
}) })
end) end)
-- 3-finger horizontal trackpad swipe → workspace switch (1:1 gesture)
hl.gesture({
fingers = 3,
direction = "horizontal",
action = "workspace",
})
-- --------------------------------------------------------------------------- -- ---------------------------------------------------------------------------
-- Autostart. Core bootstrap sequence (polkit agent, dark theme, wallpaper -- Autostart. Core bootstrap sequence (polkit agent, dark theme, wallpaper

View file

@ -112,19 +112,6 @@ local function build_hl_config(v)
dwindle = { preserve_split = true }, dwindle = { preserve_split = true },
animations = { enabled = true }, animations = { enabled = true },
misc = { disable_hyprland_logo = true, disable_splash_rendering = true }, misc = { disable_hyprland_logo = true, disable_splash_rendering = true },
-- 3-finger touchpad swipe switches workspaces (touchscreen/touchpad
-- gesture, native to Hyprland — no plugin needed).
gestures = {
workspace_swipe = true,
workspace_swipe_fingers = 3,
workspace_swipe_distance = 300,
workspace_swipe_invert = true,
workspace_swipe_min_speed_to_force = 30,
workspace_swipe_cancel_ratio = 0.5,
workspace_swipe_create_new = true,
workspace_swipe_direction_lock = true,
workspace_swipe_forever = false,
},
} }
end end