From ad7367553ba2617ccc40897358008ad92458487a Mon Sep 17 00:00:00 2001 From: Flancian <0@flancia.org> Date: Mon, 19 Apr 2021 12:12:37 +0200 Subject: [PATCH] Autopush. --- journal/2021-04-19.md | 4 +++- journal/clipboard-management.md | 16 ++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 journal/clipboard-management.md diff --git a/journal/2021-04-19.md b/journal/2021-04-19.md index 48115529d..0d2473306 100644 --- a/journal/2021-04-19.md +++ b/journal/2021-04-19.md @@ -2,4 +2,6 @@ - [[week 16]] - [[garment design with gans]] -- [[resonance]] \ No newline at end of file +- [[resonance]] +- [[clipboard management]] + diff --git a/journal/clipboard-management.md b/journal/clipboard-management.md new file mode 100644 index 000000000..14e15baea --- /dev/null +++ b/journal/clipboard-management.md @@ -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. \ No newline at end of file