this post was submitted on 14 Apr 2024
10 points (91.7% liked)

Linux

8066 readers
53 users here now

Welcome to c/linux!

Welcome to our thriving Linux community! Whether you're a seasoned Linux enthusiast or just starting your journey, we're excited to have you here. Explore, learn, and collaborate with like-minded individuals who share a passion for open-source software and the endless possibilities it offers. Together, let's dive into the world of Linux and embrace the power of freedom, customization, and innovation. Enjoy your stay and feel free to join the vibrant discussions that await you!

Rules:

  1. Stay on topic: Posts and discussions should be related to Linux, open source software, and related technologies.

  2. Be respectful: Treat fellow community members with respect and courtesy.

  3. Quality over quantity: Share informative and thought-provoking content.

  4. No spam or self-promotion: Avoid excessive self-promotion or spamming.

  5. No NSFW adult content

  6. Follow general lemmy guidelines.

founded 1 year ago
MODERATORS
 

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.

Thanks in advance.

top 5 comments
sorted by: hot top controversial new old
[–] [email protected] 3 points 6 months ago (1 children)

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.

[–] [email protected] 3 points 6 months ago* (last edited 6 months ago) (1 children)

yes - sorry. It's Arch. I'm also running in Hyprland - which you may be able to tell from the title, but I forgot to mention it in the text.

Edit: I just checked and wl-clipboard is installed.

[–] [email protected] 2 points 6 months ago (1 children)

Ok, I also run Alacritty on Arch but I'm using KDE and tmux so it might be a bit different.

Do you have save_to_clipboard = true under [selection]?

[–] [email protected] 1 points 6 months ago

I do now - hopefully it'll make a difference.

[–] [email protected] 1 points 6 months ago

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.