Go Back   DaemonForums > Miscellaneous > General software and network

General software and network General OS-independent software and network questions, X11, MTA, routing, etc.

Thread Tools Display Modes
  #1   (View Single Post)  
Old 29th July 2022
J65nko J65nko is offline
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 4,065
Default xclip a handy utility for manipulating the X Window clipboard

From the xclip(1) man page:

Reads from standard in, or from one or more files, and makes the data
available as an X selection for pasting into X applications. Prints current X selection to standard out.
When with the left mouse button you copy from a xterm window you also copy a lot of trailing whitespace. See the attached file for an example.

With xclip you can transfer a file or command output to the X clipboard
$ dmesg | head -4 | xclip 
$ xclip -o
OpenBSD 7.1 (GENERIC.MP) #3: Sun May 15 10:27:01 MDT 2022
real mem = 4242419712 (4045MB)
avail mem = 4096557056 (3906MB)
Or you can paste into an program/application (e.g. forum message box) with the middle mouse button.
Attached Images
File Type: png cp-paste-blanks.png (3.3 KB, 13 views)
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote
  #2   (View Single Post)  
Old 31st July 2022
victorvas victorvas is offline
Real Name: Victor
Join Date: May 2019
Posts: 148

There is also xsel, which works with X Window clipboard. "Retrieve and set the X selection."
Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Volume Control Graphical Utility mattthumper OpenBSD Packages and Ports 21 31st July 2015 01:05 AM
New OpenBSD automount utility - TOAD shep News 0 27th December 2013 03:41 PM
Handy X11 script Gabe_G23 Guides 6 25th October 2008 05:08 PM
Remote backup utility stukov General software and network 18 13th June 2008 08:42 PM
Utility to make FreeBSD custom ISO mtx FreeBSD General 5 9th June 2008 11:13 PM

All times are GMT. The time now is 05:37 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick