How to disable middle click button in ubuntu 18.04 by enabling /etc/rc.local
- 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
- Edit rc-local.service file
sudo vim /etc/systemd/system/rc-local.service
-
Add this section
[Install]
WantedBy=multi-user.target - Enable the service
sudo systemctl enable rc-local
Comments
Post a Comment