Forums before death by AOL, social media and spammers... "We can't have nice things"
|    alt.os.linux.slackware    |    I think its the one without Selinux crap    |    87,272 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 85,822 of 87,272    |
|    Grant Taylor to Ben Collver    |
|    Re: sync X11 primary selection and secon    |
|    11 May 22 11:06:39    |
      From: gtaylor@tnetconsulting.net              On 5/7/22 9:29 AM, Ben Collver wrote:       > Hi,              Hi,              > I would like to synchronize the X11 primary selection and secondary       > clipboard.              I'm not sure if you're wanting something that you manually initiate or       is automatically initiated in the background.              I use `xsel` do to this manually.              > Can anyone recommend a different solution to synchronize my primary       > selection to the secondary clipboard?              You seem to be missing a piece of the puzzle. X11 traditionally has       three buffers (in this context);               - primary        - secondary        - clipboard              Many GUI programs that originated on X11 use the clipboard. The primary       selection is usually incidentally altered as a precursor to altering the       clipboard.              I've only heard tell of one program, emacs, that actually utilizes the       secondary selection, save for utilities specifically meant work with       primary / secondary / clipboard.              XTerm uses the primary selection for it's copy and paste actions by default.              I'd encourage you to install, play with, and skim the man page for the       `xsel` command.              I've got the following aliases defined to make working with xsel more       convenient.              b2b='xsel -ob | xsel -ib' # remove formatting from clipboard       b2p='xsel -ob | xsel -ip' # copy clipboard to primary        ib='xsel -ib' # copy STDIN to clipboard        is='xsel -is' # copy STDIN to secondary        ob='xsel -ob' # copy clipboard to STDOUT        op='xsel -op' # copy primary to STDOUT       opf='xsel -op | fmt -w $COLUMNS' # copy primary to STDOUT via fmt        os='xsel -os' # copy secondary to STDOUT       p2b='xsel -op | xsel -ib' # copy primary to clipboard       p2p='xsel -op | xsel -ip' # remove formatting from primary                            --       Grant. . . .       unix || die              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca