Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • This solution is amazing! Seriously, this is the best solution here! It completely blocks middle mouse pasting without interfering with normal pasting at all and it doesn't mess with the middle mouse button's other functionality in any way! Commented Jun 28, 2022 at 23:06
  • It does work on wayland, but uses a whopping 10% of CPU load on a thinkpad t480s during regular tasks. As I understand it should just run once and then be stuck? I added sleep 1 and could not find any drawbacks to this yet. Wondering why not use xsel -pc instead of copying /dev/null? Commented Mar 30, 2023 at 16:06
  • This will still "paste" the empty string right? So if I select some text and then hit the middle mouse button it will effectively delete the selected text, or not? Commented Oct 24, 2023 at 16:01