JoseExposito / touchegg

Linux multi-touch gesture recognizer
GNU General Public License v3.0
3.69k stars 174 forks source link

SEND_KESY to support sending a sequence of keys #649

Closed dk949 closed 1 year ago

dk949 commented 1 year ago

Is your feature request related to a problem? Please describe

I would like to use a single gesture to perform an action that would typically require multiple shortcuts.

In Firefox, the key combination to search open tabs is: Control_L+l (open search bar) followed by percent space (search for tabs). I'd like to map that to one swipe gesture.

If this is already possible I was unable to figure out how to do it.

Describe the solution you'd like

Being able to write something along the lines of:

    <gesture type="SWIPE" fingers="4" direction="DOWN">
      <action type="SEND_KEYS">
        <keys>Control_L+l+percent+space</keys>
        <on>begin</on>
      </action>
    </gesture>

Thanks in advance.

JoseExposito commented 1 year ago

Hi!

It is not possible to do this with the SEND_KEYS action, however, you have 2 options to get it working:

Closing the issue, but feel free to comment if you have problems configuring xdotool.