Home

Awesome

vlipboard

An extended clipboard library for V with Wayland, Termux, Plan 9 and xclip & xclip fallback support. It's meant to be easier to use and simple. Contributions welcome!

Requirements:

Written a V port of wl-clipboard or want to do so? have an idea on other platforms support? You're welcome to open an issue or a pull request! This is my first V module and I just started out learning so any help is welcome ^^

Usage:

import asvvvad.vlipboard

fn main() {
	mut clip := vlipboard.new() or {
	  panic(err)
	}

	text := 'Hello, world!'
	clip.copy(text) // copy() returns true on success
	println(clip.paste()) // 'Hello, world!'
	clip.clear() // clear() returns true on success
	println(clip.paste().len <= 0) // true
}

That's it! :3