Add VM clipboard scripts

This commit is contained in:
dogeystamp 2022-01-15 16:31:11 -05:00
parent 69ec3094e9
commit 557afc7b7e
Signed by: dogeystamp
GPG Key ID: 7225FE3592EFFA38
2 changed files with 10 additions and 0 deletions

5
src/.local/bin/rcl Executable file
View File

@ -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

5
src/.local/bin/rclr Executable file
View File

@ -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