Skip to main content

Disabling middle click paste and close in ubuntu 18.04 by enabling /etc/rc.local

How to disable middle click button in ubuntu 18.04 by enabling /etc/rc.local
  1. Create or edit/etc/rc.local file

    #!/bin/bash xinput set-button-map 11 1 0 3
    exit 0

    Make sure it is executable
    $sudo chmod 755 /etc/rc.local
  2. Edit rc-local.service file
    sudo vim /etc/systemd/system/rc-local.service 
  3. Add this section
    [Install]
     WantedBy=multi-user.target
  4. Enable the service
    sudo systemctl enable rc-local

Comments