From 0c45f82fd262394c066b360de2214c3e26ae1992 Mon Sep 17 00:00:00 2001 From: wochap Date: Fri, 8 Mar 2024 13:24:27 -0500 Subject: [PATCH] remove gesture from stale folder re export patch with `git format-patch` --- _STALE_PATCHES/gestures.md | 19 ------------------- gestures/gestures.patch | 15 +++++++++++++++ 2 files changed, 15 insertions(+), 19 deletions(-) delete mode 100644 _STALE_PATCHES/gestures.md diff --git a/_STALE_PATCHES/gestures.md b/_STALE_PATCHES/gestures.md deleted file mode 100644 index 3139e9a..0000000 --- a/_STALE_PATCHES/gestures.md +++ /dev/null @@ -1,19 +0,0 @@ -### Description -Add swipe gestures to trigger functions, similar to [libinput-gestures](https://github.com/bulletmark/libinput-gestures/tree/master). It supports the following gestures: `SWIPE_UP`, `SWIPE_DOWN`, `SWIPE_LEFT` and `SWIPE_RIGHT` - -```c -static const Gesture gestures[] = { - { SWIPE_LEFT, shiftview, { .i = 1 } }, - { SWIPE_RIGHT, shiftview, { .i = -1 } }, -}; -``` - -**NOTE:** the example above requires the following patch https://github.com/djpohly/dwl/wiki/shiftview - -### Download -Apply on top of [pointerGesturesUnstableV1 patch](https://github.com/djpohly/dwl/wiki/pointerGesturesUnstableV1). - -- [2023-09-09](https://github.com/wochap/dwl/compare/pointer-gestures-unstable-v1...wochap:gestures.patch) - -### Authors -- [wochap](https://github.com/wochap) \ No newline at end of file diff --git a/gestures/gestures.patch b/gestures/gestures.patch index d4b1c13..4f72b77 100644 --- a/gestures/gestures.patch +++ b/gestures/gestures.patch @@ -1,3 +1,16 @@ +From a68af2e251dcc0cccef32a3cbbbe44481ed32576 Mon Sep 17 00:00:00 2001 +From: wochap +Date: Wed, 6 Mar 2024 10:35:18 -0500 +Subject: [PATCH] add swipe gestures to trigger functions + +like libinput-gestures, it supports the following gestures: SWIPE_UP, SWIPE_DOWN, SWIPE_LEFT and SWIPE_RIGHT +support multiple fingers count in gestures[] +support mods in gestures[] +--- + config.def.h | 9 +++++++ + dwl.c | 68 ++++++++++++++++++++++++++++++++++++++++++++++++++++ + 2 files changed, 77 insertions(+) + diff --git a/config.def.h b/config.def.h index db0babc..e2ec245 100644 --- a/config.def.h @@ -155,4 +168,6 @@ index 2aeaca1..fd7ab00 100644 // Forward swipe end event to client wlr_pointer_gestures_v1_send_swipe_end( pointer_gestures, +-- +2.42.0