2016-10-05 93 views
1

rxvt-unicode能够使用Ctrl+Meta+CCtrl+Meta+VMeta通常为Alt)复制到系统剪贴板。在urxvt中复制和粘贴

有没有办法将这些功能重新绑定到其他键? Ctrl+Shift+CCtrk+Shift+V将是更直观的选择。

回答

3

我只是设法让昨天工作。以下是我需要的X资源:

! Disable ISO 14755 unicode input so we can use Ctrl-Shift bindings 
URxvt.iso14755:  false 
URxvt.iso14755_52:  false 

! Disable Ctrl-Alt-c & Ctrl-Alt-v bindings (optional) 
URxvt.keysym.C-M-c: builtin-string: 
URxvt.keysym.C-M-v: builtin-string: 

! Bind Ctrl-Shift-c & Ctrl-Shift-v to copy and paste 
! I dont know why, but I needed to use hex keysym values to get it to work 
URxvt.keysym.C-S-0x43: eval:selection_to_clipboard 
URxvt.keysym.C-S-0x56: eval:paste_clipboard