- Arch Linux
- KDE Plasma 6.1.5 (Wayland)
- open the KDE system settings
- select "Workspace" -> "General Behavior"
- uncheck "Middle Click: Paste selected text"
- Restart the system
(e.g. Discord, etc.)
1. Install XMousePasteBlock
$ yay -S XMousePasteBlockPerhaps you should choose xmousepasteblock-git. (I failed to build with the xmousepasteblock one)
2. Registering a service in systemd
Create mousepasteblock.service in /etc/systemd/system.
[Unit]
Description=Userspace tool to disable middle mouse button paste in Xorg.
[Service]
ExecStart=/usr/bin/xmousepasteblock
[Install]
WantedBy=multi-user.target3. Reboot the system
Set middlemouse.paste to false in about:config.
How to enable middle-click scrolling.
Open Firefox Settings and search for "Scroll", Enable "Use autoscrolling".
Add --enable-blink-features=MiddleClickAutoscroll to the startup argument.
Some sentences may be incorrect because they were translated from Japanese using deepl translation.
there's a systemctl user script automatically installed to
/usr/lib/systemd/user/xmousepasteblock.service(at least there was on cachyos).You can just run
systemctl --user enable --now xmousepasteblockto enable it: no need to create anything. Plus, it'll be updated automatically if the package changes.Content at time of writing: