From dcb016ab1fbd3ab6276cdc958ce4fe7752461d67 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Thu, 24 Aug 2023 03:40:42 +0700 Subject: [PATCH] gestures: document workspace_swipe_direction_lock (#311) * gestures: document workspace_swipe_direction_lock * gestures: add swipe direction lock threshold * gestures: update swipe direction lock --- pages/Configuring/Variables.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pages/Configuring/Variables.md b/pages/Configuring/Variables.md index d25c4db..7d0b386 100644 --- a/pages/Configuring/Variables.md +++ b/pages/Configuring/Variables.md @@ -243,6 +243,8 @@ Described [here](../Keywords#per-device-input-configs). | workspace_swipe_min_speed_to_force | minimum speed in px per timepoint to force the change ignoring `cancel_ratio`. Setting to `0` will disable this mechanic. | int | 30 | | workspace_swipe_cancel_ratio | (0.0 - 1.0) how much the swipe has to proceed in order to commence it. (0.7 -> if > 0.7 * distance, switch, if less, revert) | float | 0.5 | | workspace_swipe_create_new | whether a swipe right on the last workspace should create a new one. | bool | true | +| workspace_swipe_direction_lock | if enabled, switching direction will be locked when you swipe past the `direction_lock_threshold`. | bool | true | +| workspace_swipe_direction_lock_threshold | in px, the distance to swipe before direction lock activates. | int | 10 | | workspace_swipe_forever | if enabled, swiping will not clamp at the neighboring workspaces but continue to the further ones. | bool | false | | workspace_swipe_numbered | if enabled, swiping will swipe on consecutive numbered workspaces. | bool | false | | workspace_swipe_use_r | if enabled, swiping will use the `r` prefix instead of the `m` prefix for finding workspaces. (requires disabled `workspace_swipe_numbered`) | bool | false |