windowgestures icon indicating copy to clipboard operation
windowgestures copied to clipboard

Feature Request: Add custom command for gestures

Open moltencrux opened this issue 1 year ago • 1 comments

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.

moltencrux avatar May 25 '24 14:05 moltencrux

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]);
        }

thyttan avatar Dec 12 '24 21:12 thyttan