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
1Chrome 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'