简体   繁体   中英

Bind touch gestures to gnome-terminal in i3

I'm trying to bind 2 touch gestures to go back and forth through the vim history in gnome terminal run against i3-wm, but have no luck:

  <application name="gnome-terminal">
    <gesture type="DRAG" fingers="3" direction="RIGHT">
      <action type="SEND_KEYS">Control+o</action>
    </gesture>
    <gesture type="DRAG" fingers="3" direction="LEFT">
      <action type="SEND_KEYS">Control+i</action>
    </gesture>
  </application>

I can't figure out application name to match by. I've checked output for both xwininfo and xprop , but neither Terminal , gnome-terminal or even gnome-terminal-server is working.

To solve it, need to use Gnome-terminal name with capital 'G', as it's mentioned in xprop output:

...
WM_CLASS(STRING) = "gnome-terminal-server", "Gnome-terminal"
...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM