Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Add custom command for gestures #38

Open
moltencrux opened this issue May 25, 2024 · 1 comment
Open

Feature Request: Add custom command for gestures #38

moltencrux opened this issue May 25, 2024 · 1 comment

Comments

@moltencrux
Copy link

It would be really great if you could add the ability to execute a custom commands so that users could invoke scripts upon mouse gestures.

@thyttan
Copy link

thyttan commented Dec 12, 2024

A variant of this would be to let the user define custom gesture-to-key mappings. That would massively increase the interoperability with e.g. the Tiling Shell extension.

I've changed the mapped keys for tiling on my machine with this commit.

// extension.js
@@ -640,10 +640,11 @@ class Manager {
        }
        // TODO: Using non key shortcut for snap left/right
        if (snapRight) {
/* - */  this._sendKeyPress([Clutter.KEY_Super_L, Clutter.KEY_Right]);
/* + */  this._sendKeyPress([Clutter.KEY_Alt_L, Clutter.KEY_Super_L, Clutter.KEY_l]);
        }
        else {
/* - */  this._sendKeyPress([Clutter.KEY_Super_L, Clutter.KEY_Left]);
/* + */  this._sendKeyPress([Clutter.KEY_Alt_L, Clutter.KEY_Super_L, Clutter.KEY_h]);
        }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants