From: Darshaka Pathirana Date: Wed, 6 Sep 2023 15:53:45 +0000 (+0200) Subject: .Xresources: Add Copy/Paste Key Binding X-Git-Tag: v0.8.0~1^2~1 X-Git-Url: https://git.grml.org/?a=commitdiff_plain;ds=sidebyside;h=5208b4c4c800f798e0e83afc0c8daf185cf05a9e;p=grml-desktop.git .Xresources: Add Copy/Paste Key Binding On systems without a middle mouse button it is not always obvious how to paste the selection into an xterm window. For our convenience I added the custom key binding Ctrl-Shift-v + Ctrl-Shift-c to make our lives a little less annoying. We also lack documentation on what is currently configured and how to change it. In an attempt to improve the situation, I have added some online links and some detailed comments on the lines I have added. Note, that the last escaped newline (\n\) is not needed, but makes it easier to add more key bindings. Closes: grml/grml-desktop#6 --- diff --git a/etc/skel/.Xresources b/etc/skel/.Xresources index d0de2b4..9b8b014 100644 --- a/etc/skel/.Xresources +++ b/etc/skel/.Xresources @@ -6,8 +6,33 @@ !############################################################################### ! Notice: apply changes via running 'xrdb -merge ~/.Xresources' ! run "xprop WM_CLASS" to find out title of windows +! +! Documentation: +! +! * xterm(1) +! * http://tqd1.physik.uni-freiburg.de/library/SGI_bookshelves/SGI_Developer/books/XLib_WinSys/sgi_html/ch08.html +! * https://wiki.archlinux.org/title/X_resources +! !############################################################################### +! Grml Custom Key Bindings +! +! See: *Default Key Bindings* + *Custom Key Bindings* in xterm(1) +! +! The default bindings to paste a selection are Shift-Insert + second (usually +! middle) mouse button: +! +! Shift Insert: insert-selection(SELECT, CUT_BUFFER0) +! ~Ctrl ~Meta :insert-selection(SELECT, CUT_BUFFER0) +! +! We have added Ctrl-Shift-c + Ctrl-Shift-v to be able to copy/paste using the +! CLIPBOARD selection type. This is also useful if there is no middle mouse +! button and you are not used to the Shift-Insert shortcut: + +*VT100.translations: #override \n\ + Ctrl Shift V: insert-selection(SELECT, CLIPBOARD) \n\ + Ctrl Shift C: copy-selection(CLIPBOARD) \n\ + ! If you do not have any iso8859-15 fonts, use iso8859-1 !*font: -misc-fixed-medium-r-normal-*-*-140-*-*-c-*-iso8859-15