You are not logged in.

#26 2025-03-02 11:57:12

Succulent of your garden
Member
From: Majestic kingdom of pot plants
Registered: 2024-02-29
Posts: 1,403

Re: [SOLVED] How can I enable mouse copy to clipboard in alacritty ?

Using loginctl doesn't show me any clipboard manager. So maybe I'm assuming that some patch of dwm or dwmblocks made the bug. I'm going to try with another computer with the same config.

EDIT: Also sometimes with alacritty the copy functionality doesn't works well. It's like the previous copied buffer stays instead of copying the new one. This happens with the mouse, not with ctrl + shift + c as far as I remember. This is only an alacritty issue, with any other program I don't have any problem. Maybe I could try this with kitty to see if this bug persists.

Last edited by Succulent of your garden (2025-03-02 12:01:34)


str( @soyg ) == str( @potplant ) btw!

Also now with avatar logo included!

Offline

#27 2025-03-05 02:08:07

dichead
Member
Registered: 2003-05-29
Posts: 12

Re: [SOLVED] How can I enable mouse copy to clipboard in alacritty ?

Is there a reason why you want to need a context menu to "copy" text from a virtual terminal? I'm assuming that is what you want? If so use a different terminal emulator that uses gtk or qt.

Simply highlighting the text in the terminal and then middle clicking where you want it should have worked by default. If not you have other issues.

Offline

#28 2025-03-05 02:11:41

dichead
Member
Registered: 2003-05-29
Posts: 12

Re: [SOLVED] How can I enable mouse copy to clipboard in alacritty ?

I really think you want some kind of clipboard manager. Did you read the wiki entry for "clipboard"?

Offline

#29 2025-03-05 08:18:12

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 73,783

Re: [SOLVED] How can I enable mouse copy to clipboard in alacritty ?

Afaiu the OP isn't looking for a comtext menu but just a mouse trigger to copy stuff into the CLIPBOARD buffer (in contrast to ctrl+shift+c)

@Soyg, did you test a different environment/terminal emulator? Results?

Offline

#30 2025-03-06 12:43:45

Succulent of your garden
Member
From: Majestic kingdom of pot plants
Registered: 2024-02-29
Posts: 1,403

Re: [SOLVED] How can I enable mouse copy to clipboard in alacritty ?

No, I'm going to do it then. Any suggestions for quick check this ?


str( @soyg ) == str( @potplant ) btw!

Also now with avatar logo included!

Offline

#31 2025-03-06 12:45:18

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 73,783

Re: [SOLVED] How can I enable mouse copy to clipboard in alacritty ?

I'm going to try with another computer with the same config.

Maybe I could try this with kitty to see if this bug persists.

Offline

#32 2025-03-30 10:34:52

Succulent of your garden
Member
From: Majestic kingdom of pot plants
Registered: 2024-02-29
Posts: 1,403

Re: [SOLVED] How can I enable mouse copy to clipboard in alacritty ?

Hi Seth

Finally I have time to fix this issue for me. I made this:

bindings = [
  { mouse = "Right", action = "Copy" },
]

I paste that config code with the mouse big_smile . I came to conclude that the main issue was that selecting with the left click and also copy doesn't send the order to copy in alacritty. But if a select the text with the left  click, and the just click the right click to copy, then the order gets executed and copy to clipboard. I detected that because when I was using the previous configuration using the ctrl, I notice that the order of pressing the keys matters. So when I clicked ctrl after text selection, it works.

Thank you so much for you help. It really help me to troubleshoot this and finally get what's going on behind it smile

EDIT: I don't know how but  setting the left click to copy and in reality it get assigned to the right click, just get resolved by itself tongue. Man I should check if there is really a real bug inside my computer i don't know why that happen, but probably a dependency update fix that.

Last edited by Succulent of your garden (2025-03-30 10:40:31)


str( @soyg ) == str( @potplant ) btw!

Also now with avatar logo included!

Offline

Board footer

Powered by FluxBB