Problems with the clipboard in Wayland/Hyprland/Alacritty
I recently started the process of switching over to wayland and, so far, it's going reasonably well. There are still a few things to get working, but I'm happy with the progress speed.
One of the more annoying problems, however, is using the clipboard. I'm mostly seeing it in Alacritty - which I didn't really use before, so maybe that's the culprit, but the normal select/middle click doesn't seem to work consistently. Sometimes I does and occasionally it just doesn't. Same for CTRL-C/CTRL-V. Either nothing gets pasted or is pastes something I selected 20 minutes ago and had forgotten about - but I can't replace the clipboard for love nor money.
Any suggestions on this gratefully received. Ideally, I'd like it to work how it did before and consistently - which is that either of the two above mentioned methods worked.
I think I may have had an issue like this in the past where the clipboard wasn't working at all. I believe I resolved it by installing wl-clipboard. There are also a few issues related to alacritty and clipboards in their GitHub from a while back so it might be version dependent as well.
Sharing your distro may be helpful to resolving this issue.
I have a similar issue on Pop OS. Sometimes Ctrl-C doesn't copy right away. But if I do it 2-3 times, it works. I've learned to Ctrl-C 3 times when I want to be sure that the copy works. Same thing with the middle mouse button.