From 557afc7b7e271dfd6ed62caf15cc5aa99e2156a3 Mon Sep 17 00:00:00 2001 From: DogeyStamp Date: Sat, 15 Jan 2022 16:31:11 -0500 Subject: [PATCH] Add VM clipboard scripts --- src/.local/bin/rcl | 5 +++++ src/.local/bin/rclr | 5 +++++ 2 files changed, 10 insertions(+) create mode 100755 src/.local/bin/rcl create mode 100755 src/.local/bin/rclr diff --git a/src/.local/bin/rcl b/src/.local/bin/rcl new file mode 100755 index 0000000..d539a6a --- /dev/null +++ b/src/.local/bin/rcl @@ -0,0 +1,5 @@ +#!/bin/sh + +# Send clipboard to my QEMU VM. Probably very hacky. + +xsel -b | ssh boron 'bash -ic "export DISPLAY=:0; export XAUTHORITY=\"$XDG_RUNTIME_DIR\"/Xauthority; cat | xclip -i -selection clipboard"' 2>/dev/null & disown 2>/dev/null diff --git a/src/.local/bin/rclr b/src/.local/bin/rclr new file mode 100755 index 0000000..5e552ab --- /dev/null +++ b/src/.local/bin/rclr @@ -0,0 +1,5 @@ +#!/bin/sh + +# Receive clipboard from my QEMU VM. Probably very hacky. + +ssh boron 'bash -ic "export DISPLAY=:0; export XAUTHORITY=\"$XDG_RUNTIME_DIR\"/Xauthority; xclip -o -selection clipboard"' 2>/dev/null | xsel -ib