Touchpad configuration for switching workspaces

 

Adding user to group input

sudo gpasswd -a $USER input

 

Install tools

sudo apt-get install xdotool wmctrl libinput-tools

 

Clone libinput-gestures to /home/$USER/.libinput-gestures

cd ~ 
git clone https://github.com/bulletmark/libinput-gestures .libinput-gestures
cd ~/.libinput-gestures
sudo ./libinput-gestures-setup install 
rm -rf ~/.libinput-gestures 
reboot

 

Start libinput-gestures

libinput-gestures-setup start

 

Add to autostart

libinput-gestures-setup autostart

 

Open for libinput-gestures config file for configuration

sudo vim /etc/libinput-gestures.conf

 

Comment all lines and add the following configs to the config file

gesture swipe up xdotool key ctrl+alt+Up
gesture swipe down xdotool key ctrl+alt+Down
gesture swipe left xdotool key ctrl+alt+Left
gesture swipe right xdotool key ctrl+alt+Right

 

Touch screen configuration for switching workspaces

Install tools

apt install touchegg

 

Open for touchegg config file for configuration

vim /home/$USER/.config/touchegg/touchegg.conf

 

Add the following configuration to the config file

<touchégg>
  <settings>
      <property name="composed_gestures_time">0</property>
  </settings>   
  <application name="All">
      <gesture type="TAP" fingers="2" direction="">
          <action type="MOUSE_CLICK">BUTTON=3</action>
      </gesture>
      <gesture type="TAP" fingers="5" direction="">
          <action type="CLOSE_WINDOW"></action>
      </gesture>
      <gesture type="DRAG" fingers="2" direction="ALL">
          <action type="SCROLL">SPEED=7:INVERTED=true</action>
      </gesture>
      <gesture type="DRAG" fingers="3" direction="UP">
          <action type="SEND_KEYS">Control+Alt+Up</action>
      </gesture>
      <gesture type="DRAG" fingers="3" direction="DOWN">
          <action type="SEND_KEYS">Control+Alt+Down</action>
      </gesture>
      <gesture type="DRAG" fingers="3" direction="LEFT">
          <action type="SEND_KEYS">Control+Alt+Left</action>
      </gesture>
      <gesture type="DRAG" fingers="3" direction="RIGHT">
          <action type="SEND_KEYS">Control+Alt+Right</action>
      </gesture>
  </application>
</touchégg>
There are no comments yet.
Authentication required

You must log in to post a comment.

Log in