PRIMARY clipboard paste

Martin Pohlack mp26+ux at os.inf.tu-dresden.de
Thu Sep 23 22:09:24 CEST 2010


Hi,

I have this in .Xresources:

  URxvt.keysym.C-Insert:      \033[2;5^

And this in .inputrc:

  $if term=rxvt-unicode
  ...
  # helper for below
  "\C-x\C-m": set-mark
  # yank clipboard from http://www.debian-administration.org/articles/565
  "\e[2;5^": "#\C-b\C-k#\C-x\C-?\"$(xclip -o -selection
c)\"\e\C-e\C-x\C-m\C-a\C-y\C-?\C-e\C-y\ey\C-x\C-x\C-d"
  $endif

This programs Ctrl-Ins to insert from the primary selection into bash.

HTH,
Martin






More information about the rxvt-unicode mailing list