Xclip

Jul 20, 2023

Interface to X selections (“the clipboard”) from the command line

xclip is a command line utility that is designed to run on any system with an X11 implementation. It provides an interface to X selections “the clipboard” from the command line. It can read data from standard in or a file and place it in an X selection for pasting into other X applications. xclip can also print an X selection to standard out, which can then be redirected to a file or another program.

FEATURES

  • Reads data piped to standard in or files given as arguments
  • Prints contents of selection to standard out
  • Accesses the XA_PRIMARY, XA_SECONDARY or XA_CLIPBOARD selection
  • Supports the INCR mechanism for large transfers
  • Connects to the X display in $DISPLAY, or specified with -display host0
  • Waits for selection requests in the background


Checkout these related ports:
  • Zenity - Display GNOME dialogs from the command line
  • Yelp - Help browser for the GNOME desktop
  • Yeahconsole - Terminal wrapper for creating drop-down consoles
  • Yalias - Enhanced execution box with regex pattern matching
  • Yakuake - Drop-down terminal emulator for KDE
  • Yad - Display GNOME dialogs from the command line
  • Xzoom - Magnify, rotate, mirror the image on the X11 screen
  • Xxkb - XKB keyboard layout indicator and switcher
  • Xwud - Image displayer for X
  • Xwit - X interface tool
  • Xwinwrap - XWinWrap replace a desktop background with a movie or screensaver
  • Xwininfo - Window information utility for X
  • Xwd - Dump an image of an X window
  • Xwatchwin - Watch a window on another X server
  • Xvt - Xterm replacement, supporting color, transparency, and more, with less