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 now works with Wayland as well: it uses /dev/uinput to attach a virtual keyboard.

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.5.tar.gz (21.4 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: xpaste-1.5.tar.gz
  • Upload date:
  • Size: 21.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.6

File hashes

Hashes for xpaste-1.5.tar.gz
Algorithm Hash digest
SHA256 5b7062302f521cef93ce67d7c6494f69a78da2285d36f14f60e858fc3b9ac05a
MD5 3948f2d045fc8622f531e8d460419838
BLAKE2b-256 faf507c4aa9d7a2fb628a5ab222cd5035c80305bf8d7a930b21fa0d580f9933f

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 Sentry Error logging StatusPage Status page