input: Add fully configurable trackpad gestures (#11490)

Adds configurable trackpad gestures
This commit is contained in:
Vaxry 2025-08-28 11:20:29 +02:00 committed by GitHub
parent 378e130f14
commit 81bf4eccba
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
60 changed files with 2518 additions and 940 deletions

View file

@ -763,24 +763,6 @@ inline static const std::vector<SConfigOptionDescription> CONFIG_OPTIONS = {
* gestures:
*/
SConfigOptionDescription{
.value = "gestures:workspace_swipe",
.description = "enable workspace swipe gesture on touchpad",
.type = CONFIG_OPTION_BOOL,
.data = SConfigOptionDescription::SBoolData{false},
},
SConfigOptionDescription{
.value = "gestures:workspace_swipe_fingers",
.description = "how many fingers for the touchpad gesture",
.type = CONFIG_OPTION_INT,
.data = SConfigOptionDescription::SRangeData{3, 0, 5}, //##TODO RANGE?
},
SConfigOptionDescription{
.value = "gestures:workspace_swipe_min_fingers",
.description = "if enabled, workspace_swipe_fingers is considered the minimum number of fingers to swipe",
.type = CONFIG_OPTION_BOOL,
.data = SConfigOptionDescription::SBoolData{false},
},
SConfigOptionDescription{
.value = "gestures:workspace_swipe_distance",
.description = "in px, the distance of the touchpad gesture",
@ -847,6 +829,12 @@ inline static const std::vector<SConfigOptionDescription> CONFIG_OPTIONS = {
.type = CONFIG_OPTION_BOOL,
.data = SConfigOptionDescription::SBoolData{false},
},
SConfigOptionDescription{
.value = "gestures:close_max_timeout",
.description = "Timeout for closing windows with the close gesture, in ms.",
.type = CONFIG_OPTION_INT,
.data = SConfigOptionDescription::SRangeData{1000, 10, 2000},
},
/*
* group: