Skip to content
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

Automatic pasting #41

Open
hirowatari opened this issue Mar 14, 2017 · 3 comments
Open

Automatic pasting #41

hirowatari opened this issue Mar 14, 2017 · 3 comments

Comments

@hirowatari
Copy link

I think this is a feature request, but perhaps I don't understand how best to use this. Would I would like to accomplish is that after clipster -s that if I press Enter on that screen, the output is pasted. I prefer this to needing to press paste afterwards.

@mrichar1
Copy link
Owner

Hi,

Apologies for not replying sooner!

It would be nice to be able to do clipster -s; clipster -o

However, clipster -s simply tells the daemon to display the GUI, and then exits immediately. this means that the clipboard has not yet been updated with the new selection.

It would be possible to move GUI display to the client - but that would require the daemon to first hand the entire clipboard history to the client, which could be quite large.
There also isn't an easy way for the client to wait for the daemon to close the GUI.

I'll think about this issue, but there probably isn't an easy fix right now without a major overhaul of the code!

@dicktyr
Copy link

dicktyr commented Dec 3, 2019

automated pasting is worth a separate tool!

I use shell scripts to paste or type to the active window

these scripts accept input from stdin or default to read the clipboard if stdin is not connected

I've experimented with two tools to send keystrokes: xdotool and xvkbd
(both send to the active window by default)

xdotool sleep 0.1 key --clearmodifiers "$t" sleep 0.1 keyup Meta_L Meta_R Alt_L Alt_R Super_L Super_R

xdotool has issues with --clearmodifiers hence the trailing keyup

xvkbd -no-jump-pointer -text "$t"

@stale
Copy link

stale bot commented Apr 16, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Apr 16, 2022
@stale stale bot closed this as completed Apr 28, 2022
@mrichar1 mrichar1 reopened this Apr 28, 2022
@stale stale bot removed the stale label Apr 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants