On Thu, 23 Sep 2010, Bertrand Yvain wrote:
Hi,
On Thu, Sep 23, 2010 at 11:21:07AM +0300, Laszlo Papp wrote:
URxvt.keysym.M-C-v: command:/usr/bin/xclip -selection clipboard -o
This is in my ~/.Xdefaults file, but I cannot paste into urxvt from
outside. What do I do wrong ?
The command: construct is not for shell commands but rxvt-unicode
control sequences.
Quoting from the manual:
Pressing and releasing the Middle mouse button in an urxvt window
causes the value of the PRIMARY selection (or CLIPBOARD with the Meta
modifier) to be inserted as if it had been typed on the keyboard.
Pressing Shift-Insert causes the value of the PRIMARY selection to be
inserted too.
So what you want is M-<middle_click> though I don't know how to remap
this to keys only.
Based on the keysym.sym: string resource 'list' usage example in
urxvt(1), it seems like:
URxvt.keysym.M-9: \033<M-Button2>
might work to map <Meta>+'9' to <Meta>+<Middle-click>, but it doesn't.
I think I'm just misinterpreting the example:
"""
Its usage can be demonstrated by an example:
URxvt.keysym.M-C-0x61: list|\033<M-C-|abc|>
The above line is equivalent to the following three lines:
URxvt.keysym.M-C-0x61: \033<M-C-a>
URxvt.keysym.M-C-0x62: \033<M-C-b>
URxvt.keysym.M-C-0x63: \033<M-C-c>
"""
The implication to me seems to be that the remappings are to keysyms.
Otherwise, what's the utility of pressing '<Esc>' and typing the
literal text '<' M-C-a '>'?
Perhaps a new "key:" prefix, allowing things like "M-Button2" would be
useful?
--
Best,
Ben
_______________________________________________
rxvt-unicode mailing list
[email protected]
http://lists.schmorp.de/cgi-bin/mailman/listinfo/rxvt-unicode