• Stars
    star
    120
  • Rank 295,983 (Top 6 %)
  • Language
    C
  • License
    GNU General Publi...
  • Created about 11 years ago
  • Updated about 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

automated xcutsel
autocutsel
http://www.nongnu.org/autocutsel/
https://github.com/sigmike/autocutsel
Copyright (c) 2001-2021 - Michael Witrant

X servers use two schemes to copy text between applications. The first one
(old and deprecated) is the cutbuffer. It is a simple buffer in which any
application can store text. The other scheme is the selection and works
differently. There may be many selections in a single server. An
application does not copy data in a selection, it "owns" it. When
another application wants to retreive the content of a selection, it
asks the owner.

Recent desktop applications (GNOME, KDE, ...) use two selections: the
PRIMARY and the CLIPBOARD. The PRIMARY selection is used when you select
some text with the mouse. You usually paste it using the middle button. The
CLIPBOARD selection is used when you copy text by using, for example,
the Edit/Copy menu. You may paste it using the Edit/Paste menu.

Windows VNC clients keep the Windows clipboard synchronized with the
cutbuffer, but not with the selections. And since recent applications
don't use the cutbuffer, the server's CLIPBOARD is never synchronized
with Windows' one.

Autocutsel tracks changes in the server's cutbuffer and CLIPBOARD
selection. When the CLIPBOARD is changed, it updates the cutbuffer. When
the cutbuffer is changed, it owns the CLIPBOARD selection. The cutbuffer
and CLIPBOARD selection are always synchronized. Since the VNC client
synchronizes the Windows' clipboard and the server's cutbuffer, all
three "clipboards" are always kept synchronized. When you copy some text in
Windows, the cutbuffer and the CLIPBOARD selection are updated. When you
copy text on the server using either the cutbuffer or the CLIPBOARD
selection, the Windows's clipboard is always updated.

To build autocutsel:
 ./configure
 make

If you downloaded autocutsel from git you first have to run ./bootstrap to
build the configure script.

If configure fails because it can't find X or Xaw libraries, you may have to
install the devel packages of these libraries.

On Ubuntu, you may need to install these packages :
  sudo apt-get install libc6-dev libxtst-dev xorg-dev

To install it (as root):
 make install

To run it:
 autocutsel

By default, autocutsel synchronizes the CLIPBOARD selection. You may want to use
the PRIMARY selection instead, if your applications use Motif or another toolkit
not using the CLIPBOARD. To do that, simply run
 autocutsel -selection PRIMARY

Some softwares (like Open Office Writer) have trouble when the PRIMARY selection
is requested before the mouse button is released. As a workaround, you can run
autocutsel with the "-buttonup" option and it will only get the selection when
the first mouse button is not pressed.

Any feedback is welcome.

Michael Witrant <mike at lepton.fr>


    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

More Repositories

1

avrdude

Very old copy of avrdude. Go to the official website for support.
C
99
star
2

vncthumbnailviewer

Viewer for Observing Multiple Computers using VNC
Java
18
star
3

camellia

Image Processing & Computer Vision library (v2.7.0)
C
15
star
4

ganeti

Ganeti is a cluster virtual server management software tool built on top of existing virtualization technologies such as Xen or KVM and other Open Source software.
Python
8
star
5

peercoin-faucet

Peercoin website to give free peercoins
CSS
7
star
6

rbmediawiki

Rbmediawiki is a framework for writing bots for Mediawiki.
Ruby
6
star
7

winmix

Compiz plugin to mix windows
4
star
8

fonz_fun_plug

fonz fun_plug
Shell
4
star
9

git_branch_graph

Generates a graphviz compatible output to display branch hierarchy of a git repository
Ruby
4
star
10

chrome-extension-scaffold

Generate a scaffold for a Chrome extension
Ruby
4
star
11

ninja_runner

Game with a ninja, a rope and plenty of fun
Ruby
3
star
12

cwiid_old

a collection of Linux tools written in C for interfacing to the Nintendo Wiimote
C
3
star
13

backup_host

rsync script to handle incremental backup of a remote host
Ruby
2
star
14

ftp_backup

Backup a given path to a FTP server
2
star
15

pluzz

Script to play pluzz video
2
star
16

sineti

Ganeti web interface
Ruby
2
star
17

breve

breve is a free, open-source software package which makes it easy to build 3D simulations of multi-agent systems and artificial life.
Python
2
star
18

quadrature

Scripts pour La Quadrature du Net
Ruby
2
star
19

improve

Web application to track self improvement
Ruby
2
star
20

multi_server_openvpn

Helps you create a VPN with multiple servers connected to each other
1
star
21

addon-sdk_submit-bug-example

Sublit bug example for the addon-sdk
JavaScript
1
star
22

MegaZine3

MegaZine3 is an open source, Flash driven pageflip engine.
1
star
23

peercoin-technical-faq

Peercoin technical FAQ
1
star
24

turnkey-ryzom

Patch to build a Turnkey Ryzom Server appliance
1
star
25

fluid_motion

Fluid dynamics with wii motion plus
C
1
star
26

xul-amarok

Control AmaroK from any Firefox browser on your network.
Python
1
star
27

gsub

Command line regexp tool
Ruby
1
star
28

LeNet5.jl

Julia implementation of LeNet5
Julia
1
star
29

xenstore_watch

Watches changes in XenStore
C
1
star
30

instance-debootstrap

Ganeti instance debootstrap clone
Shell
1
star
31

flash_saver

Disable screen saver while watching flash movie in full screen
Shell
1
star
32

piglobot

My Wikipedia bot
Ruby
1
star
33

sshremote

ssh to a git remote
Ruby
1
star
34

PokerTH

PokerTH is a poker game written in C++/QT4. You can play the popular "Texas Hold'em" poker variant against up to nine computer-opponents or play network games with people all over the world. This poker engine is available for Linux, Windows, and MacOS
1
star
35

garradin

Gestionnaire d'association
PHP
1
star
36

fix_wrong_encoding_conversion

Fixes UTF-8 texts wrongly interpreted as ISO8859-1 and converted to UTF-8
Ruby
1
star