Disable middle click on arch using xinput

Linux Arch KDE Xorg
<p>Install xinput:</p> <pre><code>sudo pacman -S xorg-xinput </code></pre> <p>Get the hardware id of the touch pad:</p> <pre><code>xinput </code></pre> <p>Disable the middle mouse button:</p> <pre><code>xinput set-button-map 17 1 0 3 4 5 6 7 8 9 10 11 12 </code></pre> <p>If it works, make it permanent on x startup:</p> <pre><code>echo &quot;xinput set-button-map 17 1 0 3 4 5 6 7 8 9 10 11 12&quot; &gt;&gt; ~/.xsessionrc </code></pre>

© 2026 Code0x378