windowgestures
windowgestures copied to clipboard
Feature Request: Add custom command for gestures
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.
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]);
}