重新绑定副本&粘贴在urxvt中

时间:2016-10-05 21:35:08

标签: rxvt

rxvt-unicode可以使用Ctrl+Meta+CCtrl+Meta+VMeta通常为Alt)复制到系统剪贴板或从系统剪贴板复制。

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

1 个答案:

答案 0 :(得分:4)

我昨天设法让这个工作。以下是我需要的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