mirror of
https://github.com/flancian/garden.git
synced 2026-08-07 06:56:19 +00:00
Autopush.
This commit is contained in:
@@ -2,4 +2,6 @@
|
||||
|
||||
- [[week 16]]
|
||||
- [[garment design with gans]]
|
||||
- [[resonance]]
|
||||
- [[resonance]]
|
||||
- [[clipboard management]]
|
||||
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
# clipboard management
|
||||
One of my pet peeves while managing computers over VNC, like I do currently to communicate with [[nox]] mostly, is [[clipboard management]].
|
||||
|
||||
I've managed to do clipboard transfer [[nox]] -> laptop easily; I call it xclip-in:
|
||||
|
||||
```
|
||||
ssh nox 'xclip -o -selection clipboard -d :0' | xclip -i -selection clipboard
|
||||
```
|
||||
|
||||
But for some reason the other direction eludes me. That is, I can't seem to 'push' the clipboard from my laptop to nox. The following looks like it should work, but it doesn't; xclip -i just hangs forever:
|
||||
|
||||
```
|
||||
xclip -o -selection clipboard | ssh nox 'xclip -i -selection clipboard -d :0'
|
||||
```
|
||||
|
||||
If I strace the `xclip -i` call, I see a read() that contains the clipboard I'm trying to transfer -- and then an exit with 0. But the command never finishes.
|
||||
Reference in New Issue
Block a user