Gestures are a great feature bundles in most of the gadgets we use today. From Air Pods to Phones, every gadget uses some sort of gestures to allow user functionality in a minimal and useful manner. Mac-OS and Windows support some pretty polished touch pad based gestures to go along. They do certainly improve productivity. ?️
Though Linux Distributions don’t have this feature YET. But, some third party application can do the same by emulating Keyboard Shortcuts by performing several customizable touch pad gestures.
Fusuma is an applet written in Ruby that can be used for the same function. It also uses an input device management and event handling tool called libinput-tools and a simple tool to simulate keyboard input and mouse activities like move and resize windows etc. called xdotool.
To install execute the following commands in the terminal :
sudo apt-get install libinput-tools sudo apt-get install xdotool gsettings set org.gnome.desktop.peripherals.touchpad send-events enabled sudo apt-get install ruby sudo gem install fusuma
The above commands install the application and all its required tools. Now, we need to start creating configurations for gestures. The same can be done by editing a .yml in the application’s folder:
cd # go to HOME dir cd .config # go to user config dir mkdir fusuma && cd fusuma/ # create and cd in to fusuma dir nano config.yml # create config file and edit it
This will open a text editor like UI in the terminal itself. Now, all you need to do is copy one of the following configuration or edit them in case of usability.
Paste the same in the window. Press Ctrl + X and on being prompted to save the file, Press ‘S’ to save the file.
Gesture Mapping for elementary OS
swipe: 3: left: command: 'xdotool key alt+Left' right: command: 'xdotool key alt+Right' up: command: 'xdotool key ctrl+t' threshold: 1.5 down: command: 'xdotool key ctrl+w' threshold: 1.5 4: left: command: 'xdotool key super+Left' right: command: 'xdotool key super+Right' up: command: 'xdotool key super+a' down: command: 'xdotool key super+s' pinch: 2: in: command: 'xdotool key ctrl+plus' threshold: 0.1 out: command: 'xdotool key ctrl+minus' threshold: 0.1 threshold: swipe: 1 pinch: 1 interval: swipe: 1 pinch: 1
Gesture Mapping for Ubuntu
swipe: 3: left: command: 'xdotool key alt+Shift+Tab' right: command: 'xdotool key alt+Tab' up: command: 'xdotool key super' down: command: 'xdotool key super' 4: up: command: 'xdotool key super+m' down: command: 'xdotool key super+m' pinch: in: command: 'xdotool key super+a' threshold: 0.1 out: command: 'xdotool key super' threshold: 0.1 threshold: swipe: 1 pinch: 1 interval: swipe: 1 pinch: 1
For easier startup each time you reboot your device, make the application a startup program –>
A reboot should do the trick and the Gestures can be used as easy as MacOS and Windows. In case of any issues or contingencies, feel free to use the comment section. ?♂️️