rxvt-unicode可以使用Ctrl+Meta+C
和Ctrl+Meta+V
(Meta
通常为Alt
)复制到系统剪贴板或从系统剪贴板复制。
有没有办法将这些功能重新绑定到其他键? Ctrl+Shift+C
和Ctrk+Shift+V
将是更直观的选择。
答案 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