mpiannucci / gnome-shell-extended-gestures Goto Github PK
View Code? Open in Web Editor NEWBetter touchpad gesture handling for GNOME
License: GNU General Public License v3.0
Better touchpad gesture handling for GNOME
License: GNU General Public License v3.0
I'm using Fedora 26
with GNOME 3.24.3
and wayland
on a DELL XPS 13 (2013)
. libinput
is also installed.
Gestures don't work for either 3 and 4 fingers.
My laptop is DELL XPS 9360, my touchpad support multiple gestrue, But this extension is not working now. Could you have some method to solve it?
As I can read in the README, running a Wayland session is a requirement in order to use this extension.
I am facing some problems with Wayland at the day (for example GParted doesn't start-up with it) so I can't use it until it gets truly stable.
Thanks in advance.
Find a way to somehow disable the built in TouchpadGesture handler, even though there are no handles to the running instance available.
I keep messing around with looking glass but I cant seem to figure it out.
The biggest issue is that the TouchpadAction class does not extend from gobject
but instead of Land.Class
so there does not seem to be a way to lookup the signal.
The global.stage
instance alos doesnt define anything interesting about the 'captured-event' signal so it cannot be blocked yet. I think this is due to Clutter.Stage
emitting the signal but also inheriting from Clutter.Actor
which actually defines the 'captured-event` signal itself. So maybe it can be downcasted?
Cannot use horizontal scrolling with gnome 3.28
Would love to be able to bind three-finger swipe down to a custom key binding. I would use this to close browser tabs with CTRL+W. This would dramatically improve the customization and usefulness of this already awesome extension.
I'm currently working on a Mac, but my Purism Librem 13 is on it's way. On my Macbook I use the three-finger gesture to drag and drop for example files, or to select text. It's basically the same as clicking, holding, moving, and releasing the mouse button.
Could this extension also support this?
First of all, thank you for this great extension, it definitely makes life better when having a touchpad!
Anyway, one thing I would love to see are "Stick to fingers" gestures. E.g. the four finger workspace scrolling implemented by gnome-shell directly has this feature, which makes the gesture feel even more natural. This would be especially interesting for the "Show overview" gesture.
Unfortunately, I have no clue how complex it would be to implement this. Maybe one could get some ideas/code from this https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/605 or https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/596 gnome-shell MR.
Distro: Fedora 29
Gnome 3.30
When you use a gesture to toggle into the overview, then use the gnome four finger gesture to change workspace, then use a gesture to toggle out of the overview, the windows in that workspace all jump down on the screen and out of view. Simply re-toggling the overview again fixes the issue, however it occasionally has some issues with displaying the correct currently selected window.
Thank you very much for your working and productive GNOME extension :-D
But in another computer I was using GNOME Xorg because I wanted to locate my mouse pointer using the Ctrl key (this can be enabled in Tweaks but this is working only with Xorg). I spent some time before figuring it was an issue with the Wayland requirement.
Please add a warning about Wayland requirement in https://extensions.gnome.org/extension/1253/extended-gestures/ You may also indicate explicitly it does not work with GNOME Xorg.
Some of us are still stuck with Xorg for various reasons, but this extension only supports Gnome on Wayland. Could you please support X as well?
const MOTION_THRESHOLD = 20;
work best for the xps 15. Also the horizontal swipe is harder to trigger than the vertical one.
I prefer to have my workspaces switch horizontally than vertically, so I use the Workspace to dock extension (https://github.com/passingthru67/workspaces-to-dock) to achieve this. But now the three finger swipe gesture to switch workspaces does not work unless I disable the horizontal feature. Is there any way to add compatibility with this extension?
Hello,
When I use the NVIDIA video drive it does not work.
When I use the X.org drive it is working normally.
But does anyone have this problem?
The Cycle Applications gesture only cycles between the most recently focused application. It would be nice if when you cycle applications using the gesture it displayed all open applications (like when you use Alt+Tab) and you could swipe to the one you want to switch to.
So you can cycle in two directions instead of just forward
This will basically set MOTION_THRESHOLD
in the gesture handler's checkActivated
function. The setting should be exposed in the prefs.js dialog.
By putting this extension to the gnome portal, one could auto update the extension.
Allow the user to specify the actions that they want for given gestures
I like the 'Cycle Applications" gesture a lot as alternative for workspaces. Unfortunately, if I have up and down both configured to it, they both cycle apps in the same order. Is it possible to make it work similar to "Change Workspace", so one is like alt-tab and one is like alt-shift-tab?
Well, maybe I'll do a PR myself :)
Add better documentation describing what is happening behind the scenes, and how it works within the context of the gnome shell itself.
Needed as gnome continues to move forward so if breaking API changes occur it is easy to find.
My code in #50 broke the same stuff for previous gnome versions :)
Working on a fix
The builtin gnome implementation is very simple and and works pretty much perfectly on all laptops because it only actions on vertical actions
I'm currently on git master for mutter/gnome-shell (3.29.91+)
"Toggle Overview" and "Show App Drawer" and "Cycle Applications" still work fine, but the same gesture with "Switch Workspace" fails.
journalctl output:
Aug 29 00:39:47 robert.thinkpad-x230 gnome-shell[2081]: JS ERROR: Exception in callback for signal: activated: TypeError: this._switchData is null
_actionSwitchWorkspace@resource:///org/gnome/shell/ui/windowManager.js:1094:13
wrapper@resource:///org/gnome/gjs/modules/_legacy.js:82:22
TouchpadGestureAction<._doAction@/home/robert/.local/share/gnome-shell/extensions/[email protected]/extension.js:143:17
wrapper@resource:///org/gnome/gjs/modules/_legacy.js:82:22
_emit@resource:///org/gnome/gjs/modules/signals.js:128:27
TouchpadGestureAction<._checkActivated@/home/robert/.local/share/gnome-shell/extensions/[email protected]/extension.js:73:9
wrapper@resource:///org/gnome/gjs/modules/_legacy.js:82:22
TouchpadGestureAction<._handleEvent@/home/robert/.local/share/gnome-shell/extensions/[email protected]/extension.js:90:17
wrapper@resource:///org/gnome/gjs/modules/_legacy.js:82:22
Hi
it'd be really nice to be able to configure maximize windows gesture
This is a very powerfull gesture.
regards
Hi, it'd be really nice to be able to configure 3-finger swipe to go forwards / backwards (e.g. in a browser).
hi, i can't switch workspace, other action works and I don't think there's a problem with the touch recognition on the trackpad. here some logs:
ott 20 16:06:47 Dell-g5-5587 gnome-shell[1016]: JS ERROR: Exception in callback for signal: activated: TypeError: this._switchData is null
_actionSwitchWorkspace@resource:///org/gnome/shell/ui/windowManager.js:1086:13
wrapper@resource:///org/gnome/gjs/modules/_legacy.js:82:22
_doAction@/home/ivano/.local/share/gnome-shell/extensions/[email protected]/extension.js:143:17
wrapper@resource:///org/gnome/gjs/modules/_legacy.js:82:22
_emit@resource:///org/gnome/gjs/modules/signals.js:128:27
_checkActivated@/home/ivano/.local/share/gnome-shell/extensions/[email protected]/extension.js:73:9
wrapper@resource:///org/gnome/gjs/modules/_legacy.js:82:22
_handleEvent@/home/ivano/.local/share/gnome-shell/extensions/[email protected]/extension.js:90:17
wrapper@resource:///org/gnome/gjs/modules/_legacy.js:82:22
ott 20 16:06:56 Dell-g5-5587 gnome-shell[1016]: JS ERROR: Exception in callback for signal: activated: TypeError: this._switchData is null
_actionSwitchWorkspace@resource:///org/gnome/shell/ui/windowManager.js:1086:13
wrapper@resource:///org/gnome/gjs/modules/_legacy.js:82:22
_doAction@/home/ivano/.local/share/gnome-shell/extensions/[email protected]/extension.js:143:17
wrapper@resource:///org/gnome/gjs/modules/_legacy.js:82:22
_emit@resource:///org/gnome/gjs/modules/signals.js:128:27
_checkActivated@/home/ivano/.local/share/gnome-shell/extensions/[email protected]/extension.js:73:9
wrapper@resource:///org/gnome/gjs/modules/_legacy.js:82:22
_handleEvent@/home/ivano/.local/share/gnome-shell/extensions/[email protected]/extension.js:90:17
wrapper@resource:///org/gnome/gjs/modules/_legacy.js:82:22
only the transition to overview works well.
Currently only swipe gestures are enabled. This is currently a limitation of the event handler and it will be a bit tricky becasue I am not sure how to measure pinch sensitivity.
overview
cycle applications
3 finger gesture not working on UbuntuGnome 17.04 (Wayland) =(
Ubuntu would use Xorg after 18.04. Could you please add support for this?
Hi!
I'd like to share this possible new Option/Setting window with you:
extendedGestures.zip
I think it's complete from the "visual" point of view. I mean that the widgets are not linked to the code that I am not able to read nor edit.
I did it for fun, so feel totally free to discard it. Of course I hope you will consider to use it, it could make your extension look a bit more gnome-ish in some sense. :)
In GNOME 3.28 everything works as expected: when I swipe with 3 fingers down, I switch to a lower workspace
In GNOME 3.30, however, nothing happens.
Other actions work fine (I've tested Toggle Overview, Cycle Applications and Show App Drawer), Switch Workspace is the only action that doesn't work.
GNOME 3.30 has introduced a really smooth Switch Workspace gesture (maybe that is the root of the problem). You can swipe with 4 fingers up/down and switch between workspaces smoothly, similarly to macOS. I like this change, but I want to be able to swipe with 3 fingers instead of 4 to switch workspace (ideally smoothly).
Thank you for creating this extension, I've used it for a long time and I really like it!
Thanks!
Would be nice to get this working on Cinnamon if at all possible.
So my understanding is this doesn't work for 18.04. Is there plans to support this or is there a way to get it running on 18.04.
Add the ability to control sound volume. ๐บ
Add more actions to choose from including custom keybindings
Hi guys,
Switch workspaces feature doesn't work neither 3 nor 4 fingers
Ubuntu 18.10
Wayland
Best
I checked and libinput-gestures is not installed.
Gnome default 4-finger swipe doesn't work either
Hi
First of all I love this addon and use It alot.
The only thing bothering me (HP envy 15) is that to trigger the swipe I have to put all 3 fingers on the touchpad and 'flick' them the direction I want. This makes it more of a flick than a swipe gesture.
It's still usable, but not as smooth an experience as the native gnome 4 finger swipe implementation.
Javascript is not my native language, so I'd probably not be a great help in enhancing it, but I'll try to read the code when I have available time on my hands.
Again thanks for the addon !
Installed from GitHub master branch. Four finger swipe up works out of the box. Extension settings appear in Gnome Tweaks, but no effect on enabling/changing the settings.
Right now 3 and 4 finger swipe gestures are forced to have the same actions.
This will involve adding a member to the WindowManager.TouchpadWorkspaceSwitchAction
prototype
I'm only able to trigger the toggle overview action on every 3rd or 4th attempt at a 3 finger vertical gesture. I'm on a 4th gen X1 Carbon.
I would like to be able to reduce the amount of travel required to trigger the action, as it seems to me that I should be able to just quickly close my hand with 3-fingered vertical flick, rather than nearly having to move my entire arm.
I would use the gesture all the time, if it didn't require so much effort.
The situation with horizontal gestures is even worse -- more difficult to trigger -- so much so that horizontal gestures for me are entirely useless.
Hi, i love your extension, it feels like using the touchpad on OSX, but at the moment i'm not being able to customize it like in my macbook.
I'm using the "3 Finger Vertical Gesture" to switch workspaces:
Could be possible to invert the action of a swipe? So when i swipe UP i go to the previous workspace and when i swipe DOWN i go to the next workspace?
Thanks in advance.
It seems that the 3 Finger Horizontal Gesture will only activate what the 3 Finger Vertical Gesture is set to. Currently I have Horizontal set to Cycle Applications and Horizontal to Toggle Overview, but swiping in either direction causes the overview to be shown. If I switch the vertical gesture to cycle applications, both directions cycle applications.
I've just installed the extension on Ubuntu 17.10 (Gnome Shell 3.26.2) on a Dell XPS 13.
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.