mayfrost-guides

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 46a1c96e610fe3a2d198761be5c6dfe374ec803f
parent 982e6216de9c5012cfe0e713553679081418206a
Author: mayfrost <mayfrost@cock.li>
Date:   Tue, 23 Oct 2018 18:50:08 -0300

Update X.md
Diffstat:
MX.md | 13++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/X.md b/X.md @@ -283,11 +283,14 @@ _"Xsel"_ with the help of _"GNU Screen"_ will be used as intermediary between th Then hit _"Ctrl-a + ]"_, then _"Enter"_, then _"Ctrl-d"_. ### CLIPBOARD BINDINGS -For ease of use we will use _"GNU Screen's"_ configuration file _".screenrc"_ to save shortcuts to clipboard exchange. -* Copy from _"GNU Screen"_ to _"X"_ clipboard, automatically when using _"GNU Screen's"_ copy selection -`bindkey -m ' ' eval 'stuff \040' 'writebuf' 'exec sh -c "xsel -ib < /tmp/screen-exchange"'` -* Copy from _"X"_ to _"GNU Screen"_ clipboard, by pressing "Ctrl-a + b" on _"GNU Screen's"_ normal mode -`bind b eval 'exec sh -c "xsel -ob > /tmp/screen-exchange"' readbuf 'paste .'` +For ease of use we will use _"GNU Screen's"_ configuration file _".screenrc"_ to save shortcuts to clipboard exchange. Save these in your _".screenrc"_ file: +``` +# Copy from _"GNU Screen"_ to _"X"_ clipboard, automatically when using _"GNU Screen's"_ copy selection +bindkey -m ' ' eval 'stuff \040' 'writebuf' 'exec sh -c "xsel -ib < /tmp/screen-exchange"' + +# Copy from _"X"_ to _"GNU Screen"_ clipboard, by pressing "Ctrl-a + b" on _"GNU Screen's"_ normal mode +bind b eval 'exec sh -c "xsel -ob > /tmp/screen-exchange"' readbuf 'paste .' +``` ## SCREEN TEARING To solve screen tearing you can use any of these config files in its appropriate directory.