[Removing rxvt-unicode@ from the list -- I hate bloody cross-posting, and
refuse to do it. Forward this response on as you see fit. DON'T CROSS-POST!]
On Sat, Jan 05, 2013 at 11:34:58PM +0100, Moritz Wilhelmy wrote:
> Dear urxvt and tmux communities,
>
> Attached is a snippet which escapes my tmux prefix character ` by replacing it
> by `` whenever I paste text into tmux. This is detected by matching the window
Read the following:
http://comments.gmane.org/gmane.comp.terminal-emulators.tmux.user/3379
... and better yet, try out the mentioned patch.
Then there's no need for this rather horrible hack of yours. :P
-- Thomas Adam

Dear urxvt and tmux communities,
Attached is a snippet which escapes my tmux prefix character ` by replacing it
by `` whenever I paste text into tmux. This is detected by matching the window
title for /^tmux /. It can be easily adapted to different window titles and
prefix characters. I'm posting it to these lists for discussion and so that it
doesn't get lost and can be found by search engines.
It's a rather trivial script with all values hardcoded (regex to match if tmux
is running, prefix character, no detection for nested tmux instances, etc.) but
a classical case of "works for me".
A copy of the script can also be obtained here:
http://barfooze.de/stuff/urxvt/tmux-paste-helper
Please feel free to proceed with it as you please.
Best regards,
Moritz