XCUTSEL(1)

πŸ’– XCUTSEL(1) πŸ’–

okay so hi bestie, welcome to xcutsel(1) from the General Commands Manual β€” she is literally the bridge between cut buffers and selections, and she’s here to make apps that don’t speak selection and apps that do finally get along. πŸ’–

✨ NAME ✨

xcutsel β€” interchange between cut buffer and selection. that’s the name, and she ate. πŸ’…

πŸ¦‹ SYNOPSIS πŸ¦‹

xcutsel [ -toolkitoption ...] [-selection selection] [-cutbuffer number]

🌸 DESCRIPTION 🌸

xcutsel copies the current selection into a cut buffer, and it can also make a selection that contains the current contents of the cut buffer. she’s the middle-bestie bridge between applications that don’t support selections and those that do. 🫢

By default, xcutsel uses the selection named PRIMARY and the cut buffer CUT_BUFFER0. either one or both of those can be overridden by command line arguments or by resources. no cap. ✨

An xcutsel window has these buttons:

  • quit β€” press this button and xcutsel exits. any selections held by xcutsel are automatically released. bye bestie. πŸ‘‹
  • copy PRIMARY to 0 β€” press this button and xcutsel copies the current selection into the cut buffer. periodt.
  • copy 0 to PRIMARY β€” press this button and xcutsel converts the current contents of the cut buffer into the selection. iconic.

The button labels reflect the selection and cutbuffer selected by command line options or through the resource database. πŸ’–

When the copy 0 to PRIMARY button is activated, the button will remain inverted as long as xcutsel remains the owner of the selection. this serves to remind you which client owns the current selection. note that the value of the selection remains constant; if the cutbuffer is changed, you must again activate the copy button to retrieve the new value when desired. lowkey important. πŸŽ€

πŸ’œ OPTIONS πŸ’œ

xcutsel accepts all of the standard X Toolkit command line options as well as these:

  • -selection name β€” specifies the name of the selection to use. the default is PRIMARY. the only supported abbreviations for this option are -select, -sel, and -s, as the standard toolkit option -selectionTimeout has a similar name. iykyk. 🌈
  • -cutbuffer number β€” specifies the cut buffer to use. the default is cut buffer 0. slay. πŸ”₯

πŸŽ€ X DEFAULTS πŸŽ€

This program accepts all of the standard X Toolkit resource names and classes as well as:

  • selection (class Selection) β€” this resource specifies the name of the selection to use. the default is PRIMARY.
  • cutBuffer (class CutBuffer) β€” this resource specifies the number of the cut buffer to use. the default is 0.

🧚 WIDGET NAMES 🧚

The following instance names may be used when user configuration of the labels in them is desired:

  • sel-cut (class Command) β€” this is the copy SELECTION to BUFFER button.
  • cut-sel (class Command) β€” this is the copy BUFFER to SELECTION button.
  • quit (class Command) β€” this is the quit button.

🌈 SEE ALSO 🌈

πŸ’€ BUGS πŸ’€

big sigh: there is no way to change the name of the selection or the number of the cut buffer while the program is running. not me wanting hot-swap vibes and getting none. πŸ’€

πŸ‘‘ AUTHOR πŸ‘‘

Ralph R. Swick, DEC/MIT Project Athena β€” thank you king. πŸ‘‘


okay that’s the whole page, bestie πŸ’… footer vibe check: X Version 11 and xclipboard 1.1.5 β€” that’s the source/version situation, and there’s no date line here to quote, so we’re not making one up. 🫢