From 695e965401970d15947ce74cc2f98acb0345ed03 Mon Sep 17 00:00:00 2001 From: terminalforlife Date: Sun, 15 Mar 2020 14:50:17 +0000 Subject: [PATCH] Tweak formatting & wording of `xsel` --- sheets/xsel | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/sheets/xsel b/sheets/xsel index 9c7e017..8f426a6 100644 --- a/sheets/xsel +++ b/sheets/xsel @@ -1,21 +1,20 @@ # xsel -# -# X11 selection and clipboard manipulation tool. +# Command-line tool to access X clipboard and selection buffers -# Use a command's output as input of the clip[b]oard (equivalent to Ctrl + C): +# Read from STDIN and save it to the clipboard; as if `Ctrl + C`. echo 123 | xsel -ib - -# Use the contents of a file as input of the clipboard: +# A file's contents can also be provided to xsel(1x) via STDIN. cat file | xsel -ib -# Output the clipboard's contents into the terminal (equivalent to Ctrl + V): +# Send the clipboard's contents to STDOUT; as if `Ctrl + V`. xsel -ob - -# Output the clipboard's contents into a file: +# The contents of the clipboard can be saved to a file(s). Note that the use of +# `>` means that any existing file by the same name will be overwritten. Use +# `>>` to instead append the data to that file. xsel -ob > file -# Clear the clipboard: +# Clear the clipboard. xsel -cb -# Output the X11 primary selection's contents into the terminal (equivalent to a mouse middle-click): +# Send X11 primary selection to STDOUT, as if clicking mouse's middle button. xsel -op