Skip to content

Instantly share code, notes, and snippets.

@ftuyama
Created April 14, 2020 13:48
Show Gist options
  • Save ftuyama/99cf40dfce0911fb12a57301ff5547a5 to your computer and use it in GitHub Desktop.
Save ftuyama/99cf40dfce0911fb12a57301ff5547a5 to your computer and use it in GitHub Desktop.
libinput-gestures workspace switch using 3 fingers
#!/bin/sh
# libinput-gestures workspace helper
# Then add the commands in Gesture interface
# Left
# /home/username/workspace.sh -1
# Right
# /home/username/workspace.sh 1
# Up
# /home/username/workspace.sh -3
# Down
# /home/username/workspace.sh 3
wmctrl -d | grep \* | cut -c1 | xargs -I{} expr {} + $1 | xargs wmctrl -s
@ftuyama
Copy link
Author

ftuyama commented Apr 14, 2020

Using libinput-gestures to change Ubuntu workspaces using 3 fingers. It's useful for a 3x3 workspace, using wmctrl.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment