Skip to main content
https://bettercodehub.com/edge/badge/ossobv/xpaste

SYNOPSIS

xpaste <<EOF
This text will be pasted into a window of your choosing.
EOF

DESCRIPTION

Some applications refuse to work with any of the three selection buffers that X/X11/Xorg has: the middle-mouse selection, secondary selection and the CTRL-(SHIFT-)V clipboard selection.

If you have to insert long or difficult to type text (generated passwords), not being able to paste can be troublesome.

xpaste will read the text to paste from standard input, keep it in memory and wait for you to press ENTER. When you do, it pastes the held text into the newly focused window.

See this before/after example where the username is pasted into the SuperMicro ipmiview Java application that doesn’t accept “paste” input through the middle-mouse or CTRL-V:

./xpaste.png

The pasting of text happens through “faked” keypress events. And as you can see from the example, it works.

NOTE: xpaste does not work on Wayland because it disallows applications to meddle with other applications. However, you can start both applications under the Xwayland compatibility layer, e.g. from: WAYLAND_DISPLAY= gnome-terminal

SEE ALSO

xsel(1), crikey(1)

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

xpaste-1.4.tar.gz (19.2 kB view details)

Uploaded Source

File details

Details for the file xpaste-1.4.tar.gz.

File metadata

  • Download URL: xpaste-1.4.tar.gz
  • Upload date:
  • Size: 19.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.6.9

File hashes

Hashes for xpaste-1.4.tar.gz
Algorithm Hash digest
SHA256 95e6743c316f7b52f974942c7b49404f7926362f4b5ef221cb57efadc59d6d51
MD5 cb01b0e5e1b6f43c4e4653520ab0b138
BLAKE2b-256 d5ddc5d3d16cc5f9e3cf6cb0c8192413240bebd901b9577aa22edf5692c23f71

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page