mirror of
https://github.com/mayfrost/guides.git
synced 2024-11-01 07:26:04 +00:00
Update X.md
This commit is contained in:
parent
c5c398720f
commit
3c8172c673
4
X.md
4
X.md
@ -275,7 +275,7 @@ To load changes run:
|
|||||||
`xrdb -merge ~/.Xresources`
|
`xrdb -merge ~/.Xresources`
|
||||||
|
|
||||||
## CLIPBOARD
|
## CLIPBOARD
|
||||||
_"Xsel"_ with the help of _"GNU Screen"_ will be used as intermediary between the terminal and _"X"_. As command line examples we have
|
_"Xsel"_ with the help of _"GNU Screen"_ will be used as intermediary between the terminal and _"X"_. The following commands are examples we will replace by more simple bindings:
|
||||||
* To paste from _"X"_ clipboard
|
* To paste from _"X"_ clipboard
|
||||||
`xsel -ob`
|
`xsel -ob`
|
||||||
* To copy to _"X"_ clipboard from inside _"GNU Screen"_
|
* To copy to _"X"_ clipboard from inside _"GNU Screen"_
|
||||||
@ -283,7 +283,7 @@ _"Xsel"_ with the help of _"GNU Screen"_ will be used as intermediary between th
|
|||||||
Then hit _"Ctrl-a + ]"_, then _"Enter"_, then _"Ctrl-d"_.
|
Then hit _"Ctrl-a + ]"_, then _"Enter"_, then _"Ctrl-d"_.
|
||||||
|
|
||||||
### CLIPBOARD BINDINGS
|
### CLIPBOARD BINDINGS
|
||||||
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:
|
For ease of use we will use _"GNU Screen's"_ configuration file _".screenrc"_ to save shortcuts for clipboard exchange instead of the above commands. Save these in your _".screenrc"_ file:
|
||||||
```
|
```
|
||||||
# Copy from "GNU Screen" to "X" clipboard, automatically when using "GNU Screen's" copy selection
|
# 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"'
|
bindkey -m ' ' eval 'stuff \040' 'writebuf' 'exec sh -c "xsel -ib < /tmp/screen-exchange"'
|
||||||
|
Loading…
Reference in New Issue
Block a user