-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not copying to buffer when using clipse from a hotkey (in floating term) #45
Comments
Hey @Lethaquell 👋 thanks for raising this. This is a new one! Which system clipboard utility are you using here? eg alacritty -e wl-copy test
alacritty -e sh -c 'echo test | wl-copy' The recommended dependencies for this are Could be worth checking what happens when you run the following also: alacritty -e clipse -c test
alacritty -e sh -c 'echo test | clipse -c' You could also try amending your script to add a short sleep after clipse has executed, or try I might look into adding an arg that will output what's been copied to allow a piping command like |
Hello @savedra1! Thanks for reaching me back, appreciate it. I'm using I've tried some tests eg:
I've also tried to add sleep before executing clipse itself, but for now nothing is working for me. To be clear, when I'm executing If there is anything I can also try -- I'll be grateful for any advises. I'll also investigate on problem furthermore on my spare time. P.S. I might be entirely wrong, but can it be somehow related with OSC52 functionality/compatibility within alacritty? |
@Lethaquell I see 🤔 You could be on to something there with osc52, found this in the Alacritty docs:
you could try setting this to |
@savedra1 it's on |
Thanks for letting me know @Lethaquell Seems like the connection to the X clipboard server is terminating along with the terminal session when alacritty is used. I'm wondering if there's a way to get this to persist to the main session clipboard by attaching an extra command to what you're currently using. The copy mechanism used by clipse for X environments is alacritty -e clipse | clipboard_contents=$(xclip -selection clipboard -o) && echo '$clipboard_contents' | xclip -selection clipboard OR alacritty -e "clipse; clipboard_contents=$(xclip -selection clipboard -o) && echo '$clipboard_contents' | xclip -selection clipboard" Not sure if that will help though as I'm unable to test an X environment atm. |
Hi @Lethaquell, Just wondering if you managed to make any progress here? Thanks |
Sup @savedra1 Actually, not really. For the time being and in cause of lacking free time I've stopped trying to fix this. In my spare time I'm trying to migrate to Wayland. Maybe it'll somehow help and I'll return to this issue |
@Lethaquell Wayland will deffo help I think due to a recent update with clipse that uses |
@savedra1 When I do But when I execute I tried the below command as mentioned in this issue and another but it just makes me paste
|
Hi @jasper-at-windswept thanks for reaching out! Looking at the command I think I can suggest something else to try. As the clipse selection wouldn't actually send anything to the stdin to be piped there, you could try something like this instead:
This should hopefully 're-copy' the selection to the primary selection keyboard after clipse terminates. I need to figure out a convenient way to test clipse in an Xorg environment as I still can't test this myself for the time being. Hopefully that helps put you in the right direction though! |
Thanks for getting back to me @savedra1
|
@savedra1 However it seems that specifically when clipse is run in a new terminal instantly with a command like |
More notes, |
Thank you @jasper-at-windswept! I won't throw out anymore suggestions until I'm able to test this properly but lmk in the meantime if you come across a fix 😄 |
No good news unfortunatley but I have found out this is most likely not an issue with clipse.
|
Thank you for the update @jasper-at-windswept that's a good find and definitely related to this issue. Will have a think about how to proceed here with X environments/Ubuntu. Will likely need to implement some dependency other than Xclip that can track the changes better. |
Hello! I'm using Archcraft with bspwm.
I'm running listening from
bspwmrc
config asexec clipse -listen &
Then I have a
sxhkdrc
config for my keybinds, I've configured clipse to open in floating alacritty terminal as:bspterm
is basically an Alacritty term executing from bash script for managing float/fullscreen behavior:The problem is:
Am I doing something wrong?
Quick UPD:
alacritty -e clipse
and got the same (p3) behavior. I'll try to research furthermorebspterm --float -e clipse keep
and get anything from buffer that I want, sadly, right to the moment I close the term window. I'll stick to this "solution" for nowxfce4-terminal
works just fine.The text was updated successfully, but these errors were encountered: