Created
April 14, 2020 13:48
-
-
Save ftuyama/99cf40dfce0911fb12a57301ff5547a5 to your computer and use it in GitHub Desktop.
libinput-gestures workspace switch using 3 fingers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Using libinput-gestures to change Ubuntu workspaces using 3 fingers. It's useful for a 3x3 workspace, using wmctrl.