fusuma icon indicating copy to clipboard operation
fusuma copied to clipboard

Limit begin: and end: to swiping in specific directions

Open jorbig opened this issue 2 months ago • 0 comments

Is your feature request related to a problem? Please describe. I'm using the 3 fingers Alt Tab Switcher(Windows Style) config, but would like to combine it with swipe up and down actions that don't trigger the begin: and end: commands:

    up:
      command: xdotool key Super+Tab   # Task view (in Windows RDP sessions)
    down:
      command: xdotool key Super+d      # View desktop (in Windows RDP sessions) 

Describe the solution you'd like I'd like to be able to specify for which direction(s) the begin: and end: directives are. Or maybe to have those ignored for everything that I put above it in the config. So that in order to have begin: and end: only applied to left and right, the config could be like this:

swipe:
  3:
    up:
      command: xdotool key Super+Tab
    down:
      command: xdotool key Super+d

    begin:
      command: xdotool keydown Alt
    right:
      update:
        command: xdotool key Tab
        interval: 5
    left:
      update:
        command: xdotool key Shift+Tab
        interval: 5
    end:
      command: xdotool keyup Alt

Describe alternatives you've considered The only workaround I could think of is use a different tool for the up and down swipes, like libinput-gestures with this config:

gesture swipe up 3 xdotool key Super+Tab
gesture swipe down 3 xdotool key Super+d

Additional context I'm using Xubuntu with XFCE4.

jorbig avatar Oct 24 '25 12:10 jorbig