AUTOCUTSEL(1)

πŸ’– AUTOCUTSEL(1) πŸ’–

okay bestie, sit DOWN, because autocutsel is about to fix the most annoying problem you didn't even know you had πŸ‘‘ it lives in the General Commands Manual section of the manual, and its whole entire job is keeping your X clipboard and your cutbuffer in sync. no cap.


✨ NAME ✨

autocutsel β€” keep the X clipboard and the cutbuffer in sync 🫢


🌸 SYNOPSIS 🌸

autocutsel [-selection selection_name] [-cutbuffer number] [-debug]
[-verbose] [-fork] [-pause milliseconds] [-buttonup]

πŸ¦‹ DESCRIPTION πŸ¦‹

So this manual page is a lil quick-and-dirty rundown of the autocutsel command. it's giving "briefly documents" energy, and honestly? valid.

fun lore: this page was written for the Debian distribution because the original program doesn't have a manual page. not me being the only source of truth here 😭 iconic of Debian fr fr.

Now the actual tea β˜• β€” autocutsel tracks changes in the server's cutbuffer and the clipboard selection. like a little guardian angel for your copy-paste:

  • when the clipboard gets changed β†’ it updates the cutbuffer
  • when the cutbuffer gets changed β†’ it owns the clipboard selection

and the cutbuffer and clipboard selection are always synchronized. periodt. πŸ’…

and here's the part that makes it main character: since the VNC client synchronizes the Windows' clipboard and the server's cutbuffer, all three "clipboards" are always kept synchronized. so:

  • you copy some text in Windows β†’ the cutbuffer and the clipboard selection get updated ✨
  • you copy text on the server, using either the cutbuffer or the clipboard selection β†’ the Windows's clipboard is always updated πŸ’–

all three, in lockstep, forever. slay.


πŸŽ€ OPTIONS πŸŽ€

  • -selection, -select, -sel, -s {CLIPBOARD|PRIMARY} β€” specify which selection to use. default is CLIPBOARD. yes, it has four whole names, she contains multitudes πŸ’…
  • -cutbuffer <number> β€” (details of this parameter unknown.) that's it, that's the whole description, we simply do not know πŸ™ˆ
  • -debug, -d β€” run with debugging mode. for when you need to see everything πŸ‘€
  • -verbose, -v β€” be more verbose. it reports the version and announces synchronizations. she's a talker, we love her πŸ—£οΈ
  • -fork, -f β€” run as a daemon program in the background. this is recommended when used from an X startup script 🧚
  • -pause, -p <milliseconds> β€” wait some milliseconds before owning the selection ⏳
  • -buttonup β€” get the selection only when the button 1 is not pressed. this may help with OpenOffice Writer 🌈

πŸ’œ AUTHOR πŸ’œ

this manual page was written by Elmar S. Heeb <elmar@heebs.ch> for the Debian system (but may be used by others). permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 any later version published by the Free Software Foundation. 🫢

on Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL. go read it if you want, bestie, it's right there πŸ“–


lowkey the sweetest part? this whole thing is autocutsel version 0.9.0, dated 5 December 2007 β€” and it still hits different. no notes. πŸ’–βœ¨

periodt. go sync your clipboards, queen. πŸ’…πŸ‘‘