In Ubuntu, the mouse middle-button (wheel-button) pastes the clipboard contents when clicked. When I'm scrolling it keeps pasting things between my codes and most times I don't notice. I can solve this problem temporarily with doing this. But whenever I reboot the my computer, the behavior comes back.
How can I disable this behavior permanently? I don't want my wheel-button to paste.
Best Answer
Create a
.desktop
file inThe easiest way would be to copy an existing autostart .desktop entry and change the exec line to run the xinput command needed to switch off paste.
Once done, this will execute each time you login.