VIS-CLIPBOARD(1)
π vis-clipboard(1) π
okay so this is the vis-clipboard(1) page from the General Commands Manual, and it's literally about reading from or writing to the system clipboard. it's giving tiny utility with main character energy, and honestly? it ate. β¨
πΈ NAME πΈ
vis-clipboard β read from or write to the system clipboard π
π¦ SYNOPSIS π¦
vis-clipboard --usable
vis-clipboard --copy [--selection selection]
vis-clipboard --paste [--selection selection]
π DESCRIPTION π
okay bestie, so vis-clipboard wraps various system-specific tools for interacting with a system clipboard. it can run in three different ways, depending on the flag you give it on the command-line. no cap. π«Ά
--usableβ in this mode,vis-clipboardlooks for a way to interface with the system clipboard. if it finds one, it terminates with exit code0. if no interface to the system clipboard is available, it terminates with exit code1. it's basically the vibe check before the clipboard moment. β--copyβ in this mode,vis-clipboardreads the content of standard input, and stores it in the system clipboard. so you pipe stuff in, and it's lowkey saved to the clipboard. π--pasteβ in this mode,vis-clipboardreads the content of the system clipboard, and writes it to standard output. so the clipboard content comes out the other side, ready to be piped or printed. π--selectionselection β specify which selection to use, options are"primary"or"clipboard". silently ignored on platforms with a single clipboard. π
π₯ CLIPBOARD TOOLS π₯
to determine which system clipboard to use, vis-clipboard checks for these clipboard tools in the following order:
wl-clipboard(1)β Wayland (if$WAYLAND_DISPLAYis set)wayclipβ Wayland (if$WAYLAND_DISPLAYis set)xclip(1)β X11 (if$DISPLAYis set)xsel(1)β X11 (if$DISPLAYis set)pbcopy(1)/pbpaste(1)β macOSwslclip(1)β WSL (Windows Subsystem for Linux)/dev/clipboardβ Cygwintermux-clipboard-{get,set}β Termux
like, it's literally going down the list in order until it finds its match. iconique. π
β EXIT STATUS β
the vis-clipboard utility exits 0 on success, and >0 if an error occurs. when run with the --usable flag, an exit status of 0 means that it found a supported system-specific tool, while 1 means that clipboard access is not available. mmhm, that's the whole status situation. π
πΈ EXAMPLES πΈ
test whether clipboard access is available:
if vis-clipboard --usable; then
echo "Clipboard access available"
else
echo "No clipboard"
fi
copy a friendly greeting to the clipboard:
echo "Hello, World" | vis-clipboard --copy
send the current contents of the system clipboard to be recorded and analyzed:
vis-clipboard --paste | curl -d - https://www.nsa.gov/
bestie, that last example is right there in the manual. i am simply reporting the facts. πβ¨
π SEE ALSO π
pbcopy(1), pbpaste(1), vis(1), waycopy(1), waypaste(1), wl-clipboard(1), wslclip(1), xclip(1), xsel(1)
mwah π β this iconic page says source/version Vis v0.9-531-gd89b6c27-dirty, dated November 29, 2016. periodt. π
π¦ where this page comes from
- arch rolling: vis 0.9.r531.gd89b6c27-1 Β· custom:ISC
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms