Coder Social home page Coder Social logo

Comments (4)

harshadgavali avatar harshadgavali commented on July 29, 2024

Sorry @mijorus.

Since PopOS is moving away from GNOME, extensions won't work at all in their upcoming DE.
So I don't want spend time adding temporary workarounds for their customizations.

from gnome-gesture-improvements.

mijorus avatar mijorus commented on July 29, 2024

I totally understand your position @harshadgavali. I am forking this extension so that I can make it more compatible with Pop.

Could you please explain me roughly how it work?

I can see that most of the action takes place here, where you connect some gestures with the apply() method.

Am I correct?

Thanks for your time

from gnome-gesture-improvements.

harshadgavali avatar harshadgavali commented on July 29, 2024

Hi @mijorus, gesture in gestures.ts are related to workspace.

If you just want to disable gesture to navigate app-grid, I think following change might work for you.
I tested following change on Fedora Silverblue 36 RC. It makes so that using 4 finger up/down we can only move between desktop and overview.

diff --git a/extension/src/overviewRoundTrip.ts b/extension/src/overviewRoundTrip.ts
index c68120a..8a13d76 100644
--- a/extension/src/overviewRoundTrip.ts
+++ b/extension/src/overviewRoundTrip.ts
@@ -99,8 +99,7 @@ export class OverviewRoundTripGestureExtension implements ISubExtension {
 	_gestureBegin(tracker: typeof SwipeTracker.prototype): void {
 		const _tracker = {
 			confirmSwipe: (distance: number, snapPoints: number[], currentProgress: number, cancelProgress: number) => {
-				snapPoints.unshift(OverviewControlsState.APP_GRID_P);
-				snapPoints.push(OverviewControlsState.HIDDEN_N);
+				snapPoints.pop();
 				tracker.confirmSwipe(
 					distance,
 					snapPoints,

But if you want something else for overview gesture. You might need to update this file (extension/src/overviewRoundTrip.ts).

PS: In case you missed there's also touchegg. that can work on non-GNOME environments.

from gnome-gesture-improvements.

mijorus avatar mijorus commented on July 29, 2024

Thank you for the explanation.

Touchegg is not needed anymore, as I can use Wayland on PopOS.

Pop is still using GNOME and will problably keep using it until next year (or more, I bet that COSMIC will be postponed).

from gnome-gesture-improvements.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.