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.

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

Uploaded Source

File details

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

File metadata

  • Download URL: xpaste-1.1.tar.gz
  • Upload date:
  • Size: 17.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for xpaste-1.1.tar.gz
Algorithm Hash digest
SHA256 d751c9bb1617e51997587f482a3cc72f518727350c42430b220278ac949fcfaa
MD5 18d2b824ef367dc071543386b3397afd
BLAKE2b-256 2051dc63b3c5db73b2749c0bd10dc0b2cd602e5612edd0055fddff4ed37503c0

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