On Jun 22, 2009, at 1:54 AM, Kevin Nagel wrote:

Regarding the replacing part, i dont know much about where info is
place in the clipboard, but understand that xclip/xsel can access
it, and once retrieved i can do whatever i want (e.g. pipe + use
stdoutput as result). Is is not possible to replace it back by
simulating the 'ctrl+v' keystrokes? (does not work for all apps, but
a ruleset can specify ctrl+y for emacs and another ctrl+v for gedit
etc).

I just tried running xdotool from dmenu, and it seems to do the trick, so I recant my earlier remark.

You don't need to simulate the paste keystroke, you can just run "xdotool type sometext".

Reply via email to