News for hackers. Stuff that matters.
Re:With Firefox on X11, any page can pastejack you anytime (... by Aardwolf on Saturday October 21, 2023 @11:34AM (#37967646)
I love middle click paste, in combination with ctrl+c/ctrl+v paste it's a second clipboard, which allows to do one kind of refactoring in between doing some other refactoring in code (as just one example).

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...

Re:With Firefox on X11, any page can pastejack you anytime (... by mainpassathome on Saturday October 21, 2023 @11:40AM (#37967695)
it doesn’t not support it, it doesn’t set this unexpected behaviour as default
Re:With Firefox on X11, any page can pastejack you anytime (... by Aardwolf on Saturday October 21, 2023 @11:56AM (#37967881)
Whether it's unexpected or not depends on the user, you could as well say ctrl+v pasting in windows is unexpected if you don't know this shortcut. Middle click paste in linux is a standard feature this OS has always had
Re:With Firefox on X11, any page can pastejack you anytime (... by macNchz on Saturday October 21, 2023 @01:00PM (#37968535)
The problem being that middle click does other stuff, like opening links in new browser tabs.
Re:With Firefox on X11, any page can pastejack you anytime (... by arp242 on Saturday October 21, 2023 @01:31PM (#37968855)
Well, we can have a long discussion about what is "better" or not, but in the end it's just a preference, and also a long-standing paradigm.

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.

Re:With Firefox on X11, any page can pastejack you anytime (... by opan on Sunday October 22, 2023 @02:10AM (#37973204)
It also closes tabs, and can allow scrolling. These things are in different contexts and don't interfere. You'd need to be in a text box to middle-click-paste. It won't mess up opening a link in a new tab.
Re:With Firefox on X11, any page can pastejack you anytime (... by midasuni on Saturday October 21, 2023 @01:01PM (#37968548)
Middle click paste is very much expected - it’s been standard for at least a quarter of a century
Re:With Firefox on X11, any page can pastejack you anytime (... by pauby on Saturday October 21, 2023 @11:51AM (#37967814)
Wayland supports screenshots. I drive it daily and use that feature many times per day.

Can't talk about the others as I don't use them.

Re:With Firefox on X11, any page can pastejack you anytime (... by the_pwner224 on Saturday October 21, 2023 @01:06PM (#37968583)
> things it doesn't support like xclip

https://github.com/bugaevc/wl-clipboard

$ cat ~/bin/clip

    #!/bin/sh
    
    if [[ -z $WAYLAND_DISPLAY ]]; then
      xclip -selection clipboard
    else
      wl-copy
    fi
Re:With Firefox on X11, any page can pastejack you anytime (... by wavemode on Saturday October 21, 2023 @02:13PM (#37969201)
Seems like the real solution is clipboard history, which I make extensive use of on KDE and Windows. Never felt the need for middle click paste.
Re:With Firefox on X11, any page can pastejack you anytime (... by opan on Sunday October 22, 2023 @02:13AM (#37973222)
This doesn't cover the use-case of having unique info in both at the same time, allowing you to paste in your desired order. I have a script where I read from the primary selection, modify the text, and put it on the clipboard. I use this along with something more like a regular clipboard manager to complete a task. Combined I can highlight some text, put other info on my main clipboard to paste right away, then run my script that uses the primary selection afterward without going back to re-copy the first text.
Re:With Firefox on X11, any page can pastejack you anytime (... by opan on Sunday October 22, 2023 @01:58AM (#37973149)
Everything you listed works on Wayland.

Grim 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.

Re:With Firefox on X11, any page can pastejack you anytime (... by doix on Sunday October 22, 2023 @07:54AM (#37974585)
> 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.