Four finger gesture in Fusuma/xdotool to change tab in Chrome?

I'm trying to use Fusuma/Xdotool to do a 4 finger swipe left/right to change tab in Chrome (i.e. to trigger alt+tab and alt+shift+tab. However, it doesn't seem to work. Other 3 and 4 finger gestures are recognized. Running Ubuntu 20.04.

This is my config:

swipe: 3: left: command: 'xdotool key alt+Left' right: command: 'xdotool key alt+Right' up: command: 'xdotool key ctrl+t' down: command: 'xdotool key ctrl+w' 4: left: command: 'xdotool key ctrl+Tab' right: command: 'xdotool key ctrl+alt+Tab' up: command: 'xdotool key super' down: command: 'xdotool key super'
pinch: in: command: 'xdotool keydown ctrl click 4 keyup ctrl' out: command: 'xdotool keydown ctrl click 5 keyup ctrl'

What do I need to do?

2 Answers

xdotool key ctrl+Page_Up # Switch to prev tab

xdotool key ctrl+Page_Down # Switch to next tab

This works for me

1

Chrome uses Ctrl+Tab to switch tabs to the right and Ctrl+Shift+Tab to go to the left.

4: right: command: 'xdotool key ctrl+Tab' left: command: 'xdotool key ctrl+Shift+Tab'

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like