That’s why I felt it was a bad default.
"Other than that, Mrs. Lincoln, how was the play?"
I didn't know wayland doesn't support that either, one more thing to add to the list of things it doesn't support like screenshots, xclip, mouse/keyboard automation, etc...
It's fine to dislikes it; everyone dislikes some features (e.g. personally I really dislike autoscroll). The thing is that it's not "unexpected" because it's been like this for >30 years, since the 80s. Nor is there anything wrong with it: it's just something you can like or dislike.
Or to put it in another way: if I wanted my Unix system to behave like Windows or macOS then I'd be using Windows or macOS.
Can't talk about the others as I don't use them.
https://github.com/bugaevc/wl-clipboard
$ cat ~/bin/clip
#!/bin/sh
if [[ -z $WAYLAND_DISPLAY ]]; then
xclip -selection clipboard
else
wl-copy
fiGrim for screenshots, slurp for selection (similar to maim). wl-clipboard works like xclip with its wl-copy and wl-paste commands, I use it extensively in scripts. There is ydotool (not to be confused with xdotool) for kb/m automation. Highlight + middle click paste also works as expected and I use that many times a day. Primary selection is also available to wl-clipboard with a -p arg for both copy and paste.
t. actual daily Sway user for several years now
It's insane to me how much misinformation is spread about Wayland by people who just don't even try it. I guess people want to hate it.
I suspect it didn't work at one point and then people ditched it and have that as their memory. I tried to switch to sway, a bunch of stuff didn't work like I expected and I just switched back to i3, this was probably 3-4 years ago at this point.
I assume it's probably gotten better, so I don't go around commenting. But I fully believe people did try it and it didn't work for them (at some point) and they just ditched it.
I do agree that overloading the button is terrible. I like the scroll wheel but wish there was a separate middle button. And I loathe middle button auto scroll, I regard it as a useless, user hostile feature.
Then I try to middle click autoscroll in discord or something (which works in windows!) and I’ll paste in information that I don’t intend to.
This is the first I’m hearing about Wayland fixing this. Maybe I’ll give Wayland yet another try soon.
You can fix this in the latest working firefox version with `about:config > middlemouse.paste = false` (I found this by browsing through about:config, so I'm not sure if it's decumented anywhere), but I'm not sure if that still works in the enshittified versions.
(It doesn't prevent selected text from being middle-pasted into other applications, but all my other disrupted-by-paste applications explicitly don't support middle-click-to-paste (in several cases because I deliberately wrote them that way), so I haven't gotten around to fixing that part yet.)
But this “feature” is enabled globally across XServer and is so deeply engrained that there is no global off switch. I must find workarounds for every application in order to make my middle mouse click function as I would expect.
For an OS where everything else is so customizable this baffles me.
I so frequently encounter problems where I proofread something (or my compiler finds it for me) and I find weird words or sentence fragments that I inserted on accident while navigating a document.
We're having a conversation in this thread about whether or not the feature is good, but it shouldn't matter. People who like the behavior and people who don't should be able to live side by side, without one affecting the other. The issue is that the feature should not be forced.
Also, "no modes" is both a question of personal preference and a sliding scale. Input-has-focus is a mode, too, but getting rid of that would be an obvious mistake.
I hardly ever touch the mouse, but if I am using it then I'm most likely copying and pasting. Don't make that difficult.
All trackpads I've tried support middle click via a three-finger tap.
https://www.notebookcheck.net/Review-HP-ZBook-15-Workstation...
I disabled tap to click and all gestures except two finger scrolling.
https://superuser.com/questions/90257/what-is-the-difference...
https://www.gnu.org/software/emacs/manual/html_node/emacs/Se...
When I'm reading a long article, my usual strategy is to middle-click and then move the mouse to a position that causes the page to move in time with my reading speed. The continuous movement is a lot easier for my eyes to track than occasional bursts of scrolling, and I can tweak the scroll speed by subtly adjusting the mouse position. It's a bit like cruise control for scrolling.
I'm not saying you ought to use it, but you're decrying it as "not user-friendly" and "not needed" when what you really mean is "I don't like it" and "I don't use it".
Windows now has clipboard history by pasting with Win+V, having the best of both worlds.
I'm sorry you can't adapt, but honesty no one cares =)
What’s problematic with the Firefox behavior is that content gets copied (pasted) that wasn’t selected by the user.
The patch here would not help security at all. Only using control-x control-e before pasting (so that it comes into a real editor, not directly in the terminal) can help.
Invisible text can add to what you selected, but it can’t replace it.
There’s also an argument to be made that invisible text shouldn’t be copied, though that’s harder to define precisely (you don’t want to copy “display: none”, but you want to copy scrolled-out content).
Also in Mintty: https://mintty.github.io/mintty.1.html#%03Text%20selection,%...
Of course that means I also don't have a horse in the "What should middle click do race".
You can bind a keyboard shortcut to a script that copies the primary to clipboard, then can use ctrl-v. Most apps also bind shift-insert to paste the paste buffer, so I bind shift-delete to this script, then to paste the primary it's just shift-delete then shift-insert. Here's the "script":
xsel -p | xsel -i -bTried a few solutions but they didn't work on Wayland (as most of them were xinput hacks).
I didn't experience such accidental pastes when I had Windows installed.
In places where this doesn't work, clipboard history is an okay replacement (if you need multiple things "transported").
Copying should always be deliberate, not something that blasts out your clipboard when you click in the wrong place and select something unintentionally.
This isn't helped by the fact that the mainstream desktop OSes don't have proper clipboard managers bundled by default. Accidentally copying something isn't as big a deal when you have the most recent 200 items you've copied in an easily searchable widget.
Poor API design and the inability for APIs like the clipboard to evolve are part of the reason why desktop Linux's security keeps falling behind other operating systems.
Either way, I'm pretty sure it could be added if someone cared enough, e.g. by adding a new target.
It just seems to me that if someone is able to access your clipboard history you've lost already, and the entire feature seems more of a convenience thing than a security thing.
Win32: https://learn.microsoft.com/en-us/windows/win32/dataxchg/cli...
WinRT: https://learn.microsoft.com/en-us/uwp/api/windows.applicatio...
>Either way, I'm pretty sure it could be added if someone cared enough
That's the problem. Ironically, not enough people care about improving the security and privacy of desktop Linux.
>It just seems to me that if someone is able to access your clipboard history you've lost already
Do you not see how it could be problematic if sensitive things were logged and persisted to disk?
And your link just shows some programmatic access? How do I access that as a user when I press Ctrl+C? I suppose it's "useful" for things like password managers, but since anything can read the clipboard anyway it's a very limited protection. If something is so sensitive that you're using that special programmatic way of storing it then you should be using the clipboard but an actually secure mechanism.
Learning that you can middle click on the back/forward/refresh buttons to open the previous/next/current page (respectively) in a new tab was a game changer for me
However it's a nightmare when you use a mix of OSes every day as I do :(
He was copying a listing all of the executables in various locations on the machine he'd created using ls -l, into a text document (logged in as root). Unfortunately, he accidentally middle-clicked while moving the mouse to the text editor, and it pasted everything into the shell.
Since it was mostly symlinks in the standard /bin /sbin /usr/bin /usr/sbin etc, the shell dutifully redirected garbage into each destination binary, rendering the OS unusable.
One must be root to be able to do that.
Having a single mouse button (that often has other functionality like autoscroll in Firefox) cause text highlighted in another app to paste in the focused app is super unintuitive to me, and caused a few significant annoyances unintentionally pasting secrets or private messages in the wrong place before I got rid of it.