evuraan / swipe Goto Github PK
View Code? Open in Web Editor NEWLinux Gestures
Home Page: https://evuraan.info/Swipe/
License: GNU General Public License v3.0
Linux Gestures
Home Page: https://evuraan.info/Swipe/
License: GNU General Public License v3.0
Hello
First I'd like to say how amazing Swipe is as it bridges a gap between Linux and Windows that shouldn't be there IMO!
However, when I pinch to zoom after launching Swipe, it works initially and then after one or two times of pinching and zooming, it appears to break Swipe and throws up the error of "Error 3.1 - disabling further notifications".
I'm on Pop!_OS 22.04 on a Lenovo Legion 7 laptop.
Thread to share your swipe configs. Here's mine:
# 2 finger Touchpad # Go back one page 2left: "KEY_LEFTALT + KEY_RIGHT" # Go forward one page 2right: "KEY_LEFTALT + KEY_LEFT" # 3 finger Touchpad Gestures: # Reset zoom level 3right: "KEY_RIGHTCTRL + KEY_0" # Reset zoom level 3left: "KEY_RIGHTCTRL + KEY_0" # Zoom in 3up: "KEY_RIGHTCTRL + KEY_KPPLUS" # Zoom out 3down: "KEY_RIGHTCTRL + KEY_MINUS" # 4 finger Touchpad Gestures: # Mute 4right: "KEY_MUTE" # Custom action: Press Ctrl+Alt+P 4left: "KEY_LEFTALT + KEY_RIGHTCTRL + KEY_P" # Volume up 4up: "KEY_VOLUMEUP" # Volume down 4down: "KEY_VOLUMEDOWN" # 5 - Touchscreens gestures # Touchscreen 1 finger gestures # Scroll down touch1up: "KEY_SPACE" # Scroll Up touch1down: "KEY_RIGHTSHIFT + KEY_SPACE" # Go back one page touch1left: "KEY_LEFTALT + KEY_RIGHT" # Go forward one page touch1right: "KEY_LEFTALT + KEY_LEFT" # Touchscreen 2 finger gestures # Zoom in touch2up: "KEY_RIGHTCTRL + KEY_KPPLUS" # Zoom out touch2down: "KEY_RIGHTCTRL + KEY_MINUS" # Go back one page touch2left: "KEY_LEFTALT + KEY_RIGHT" # Go forward one page touch2right: "KEY_LEFTALT + KEY_LEFT" # Touchscreen 3 finger gestures # Volume up touch3up: "KEY_VOLUMEUP" # Volume down touch3down: "KEY_VOLUMEDOWN" # unused touchscreen 3 and 4 finger gestures #touch3left: "KEY_LEFTALT + KEY_RIGHT" #touch3right: "KEY_LEFTALT + KEY_LEFT" #touch4up: "KEY_UP" #touch4down: "KEY_DOWN" #touch4left: "KEY_LEFTALT + KEY_RIGHT" #touch4right: "KEY_LEFTALT + KEY_LEFT"
Hey there,
Since the last update its been awesome, just what I've been looking for.
This issue is likely only a problem on 2-in-1 laptops. When I fold the display back my device (XPS 13") switches to tablet mode, disconnecting the keyboard and touchpad to avoid unwanted interactions. When this happens swipe stops registering touchscreen gestures as well.
EDIT: Did further testing, looks like the gestures are still registered by Swipe, but nothing happens. Is it perhaps there's no keyboard?
Is there any way around this? I understand it may be difficult to test without a similar device.
Cheers
Kai
Hi There,
Love Swipe! Responsive and easy to configure!
Touchscreen gestures seem a bit lacking though. I see there are multiple speeds/fingers in the config. But they don't seem to work. Running Swipe in debug mode I can see the gestures are recognised. MED_UP/DOWN for 2 finger and FAST for 3 finger but no events are handled.
Are there plans to add this feature for horizontal touchscreen swipes as well? Or at least have Swipe ignore 1 finger touchsceen swipes?
Thanks for all your hard work!
Current Touchsceen mapping:
5right: "KEY_LEFTALT + KEY_RIGHT"
5left: "KEY_LEFTALT + KEY_LEFT"
5up: "KEY_RESERVED"
5mediumUp: "KEY_LEFTMETA + KEY_I"
5mediumDown: "KEY_LEFTMETA + KEY_I"
5down: ""KEY_RESERVED"
5fastup: "KEY_LEFTMETA + KEY_I"
5fastdown: "KEY_LEFTMETA + KEY_I"
Debug:
Sat Aug 19 17:45:11 2023 Swipe/7.2a movedTo: RIGHT
Sat Aug 19 17:45:11 2023 Swipe/7.2a fingers: 1
Sat Aug 19 17:45:11 2023 Swipe/7.2a startx :42.13, endx: 42.43
Sat Aug 19 17:45:11 2023 Swipe/7.2a starty: 67.03, endy: 67
Sat Aug 19 17:45:11 2023 Swipe/7.2a xdelta: 0.29999999999999716, ydelta: -0.030000000000001137, abs(xd): 0.29999999999999716, abs(yd): 0.030000000000001137
Sat Aug 19 17:45:11 2023 Swipe/7.2a combo: false
Sat Aug 19 17:45:11 2023 Swipe/7.2a touchLen: 23
Sat Aug 19 17:45:11 2023 [C] [emit] emitted 24 bytes type 1 code 56
Sat Aug 19 17:45:11 2023 [C] [emit] emitted 24 bytes type 1 code 106
Sat Aug 19 17:45:11 2023 [C] [emit] emitted 24 bytes type 0 code 0
Sat Aug 19 17:45:11 2023 [C] [emit] emitted 24 bytes type 1 code 56
Sat Aug 19 17:45:11 2023 [C] [emit] emitted 24 bytes type 1 code 106
Sat Aug 19 17:45:11 2023 [C] [emit] emitted 24 bytes type 0 code 0
Sat Aug 19 17:45:11 2023 [C] [handleEvents] Handled 2 events
Sat Aug 19 17:45:11 2023 Swipe/7.2a Gesture type 5, intent: RIGHT, cmd: KEY_LEFTALT + KEY_RIGHT
Sat Aug 19 17:45:16 2023 Swipe/7.2a movedTo: MED_DOWN
Sat Aug 19 17:45:16 2023 Swipe/7.2a fingers: 2
Sat Aug 19 17:45:16 2023 Swipe/7.2a startx :53.19, endx: 53.18
Sat Aug 19 17:45:16 2023 Swipe/7.2a starty: 39.89, endy: 40.05
Sat Aug 19 17:45:16 2023 Swipe/7.2a xdelta: -0.00999999999999801, ydelta: 0.1599999999999966, abs(xd): 0.00999999999999801, abs(yd): 0.1599999999999966
Sat Aug 19 17:45:16 2023 Swipe/7.2a touchLen: 30
Sat Aug 19 17:45:18 2023 Swipe/7.2a movedTo: FAST_DOWN
Sat Aug 19 17:45:18 2023 Swipe/7.2a fingers: 3
Sat Aug 19 17:45:18 2023 Swipe/7.2a startx :69.79, endx: 69.81
Sat Aug 19 17:45:18 2023 Swipe/7.2a touchLen: 26
Sat Aug 19 17:45:18 2023 Swipe/7.2a starty: 34.27, endy: 34.41
Sat Aug 19 17:45:18 2023 Swipe/7.2a xdelta: 0.01999999999999602, ydelta: 0.13999999999999346, abs(xd): 0.01999999999999602, abs(yd): 0.13999999999999346
Sat Aug 19 17:45:19 2023 Swipe/7.2a movedTo: FAST_UP
Sat Aug 19 17:45:19 2023 Swipe/7.2a fingers: 3
Sat Aug 19 17:45:19 2023 Swipe/7.2a touchLen: 27
Sat Aug 19 17:45:19 2023 Swipe/7.2a startx :51.78, endx: 51.78
Sat Aug 19 17:45:19 2023 Swipe/7.2a starty: 71.6, endy: 71.46
Sat Aug 19 17:45:19 2023 Swipe/7.2a xdelta: 0, ydelta: -0.14000000000000057, abs(xd): -0, abs(yd): 0.14000000000000057
Great job! And would you like to consider about swipe from edge or to the edge? like a ipad or a phone, swipe up from bottom has a different function from swipe up.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.