Open hirowatari opened 7 years ago
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!
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"
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.
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.