Tool to send text to a Flatkvm session's clipboard
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore
Cargo.lock
Cargo.toml
LICENSE
README.md

README.md

Flatkvm is a tool to easily run flatpak apps isolated inside a VM, using QEMU/KVM.

flatkvm-paste can be used to send text to a Flatkvm session's clipboard.

Usage

flatkvm-paste accepts as a single argument the PID of a flatkvm process and reads the data to be pasted from stdin. This way, flatkvm-paste can be easily integrated into scripts and/or associated to keybindings on window managers like i3wm.

If you have flatkvm session running gedit, you can do something like this:

echo "Hello world!" | flatkvm-paste `pgrep -f "flatkvm run.*gedit"`

You can also use xclip (included on most distributions) to send the current clipboard contents:

xclip -o | flatkvm-paste `pgrep -f "flatkvm run.*gedit"`