Giter Club home page Giter Club logo

clipit's Introduction

Introduction

ClipIt is a lightweight GTK+ clipboard manager.

Project website: https://github.com/CristianHenzel/ClipIt

ClipIt - Lightweight GTK+ Clipboard Manager

Copyright (C) 2010-2019 by Cristian Henzel [email protected]

Copyright (C) 2011 by Eugene Nikolsky [email protected]

forked from parcellite, which is

Copyright (C) 2007-2008 Gilberto "Xyhthyx" Miralla [email protected]

ClipIt available in Debian and Ubuntu repositories (1.4.4) is broken. Use latest package from this repo.

How to compile and install clipit

Requirements:

  • gtk+ >= 2.10.0 (>= 3.0 for gtk+3)
  • xdotool - for automatic paste functionality
  • intltool

On Ubuntu:

sudo apt-get install build-essential git automake xdotool autoconf intltool autopoint gtk+-3.0

Download the clipit source code, then:

tar zxvf clipit-x.y.z.tar.gz
cd clipit-x.y.z
./autogen.sh
./configure --with-gtk3 
make
sudo make install

Build using meson:

meson build -Dwith-gtk3=true
cd build
ninja
sudo ninja install  

PPA builds

sudo add-apt-repository ppa:afelinczak/ppa

Documentation

Default keybindings:

Action Key combination
History Ctrl + Alt + h
Actions Ctrl + Alt + a
Menu Ctrl + Alt + p
Search Ctrl + Alt + f
Offline mode Ctrl + Alt + o

clipit's People

Contributors

0x4d4c avatar afelinczak avatar anfabio avatar colonelpanic8 avatar cristianhenzel avatar eson57 avatar facetoe avatar jemyzhang avatar jose1711 avatar jrrtck avatar lstranger avatar mananabanana avatar muzena avatar nick87720z avatar ozzyboshi avatar pjotr123 avatar pluton8 avatar rbuj avatar roxfr avatar scootergrisen avatar sveinki avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

clipit's Issues

copy the entire clipboard

a good feature that miss is an option to copy the entire clipboard, all the lines, because the history file is not very usable without a program to parse it (may be you have a script to remove extra characters and parse the file)
i see well a new ctrl alt + key that copy all the lines into a new line. it prevents the use of history file.

Menu hotkey not working in openbox on ubuntu 12.04

The hotkeys for other items work fine, and I have tried different hotkeys for the menu hotkey, but none work.
At the moment the only way I can get to preferences is via the actions hotkey.
I am using openbox on Ubuntu 12.04 (yes I've checked my openbox keybindings).

Auto-clearing old entries

For security's sake, it'd be good if ClipIt had an option to auto-remove entries older than X seconds/minutes.

Usually any multi copying/pasting is done fairly quickly so there's no need to keep most history for very long.

Back tick "`" do not work with history hotkey

I use Ditto Clipboard Manager on Windows and I'm used to default "Ctrl-`" history hotkey (control + back stick). It would be great to be able to use the same hotkey for ClipIt on Ubuntu. Currently hotkey with back stick do not work.

Disable autostart of clipit

For me this is quite unexpected that just installing the clipit package all users get it autostarted and without option to disable it.
I chose clipit, but if other user chose something else, they get clipit anyway.

I think usually programs are not autostarted unless either started OR started+configured to autostart.
I think clipit should follow this pattern.

Cli pipe to clipit gives 'Clipboard is null, recovering ...'

Hi

I'm trying to send an entry to clipit via the commandline, however it does not enter anything into the clipboard and gives the following error:

> clipit "text"
Clipboard is null, recovering ...
>

> echo "text" | clipit
Clipboard is null, recovering ...

>

I'm using Manjaro Openbox. Perhaps I have a setting wrong somewhere?


clipit -d

It doesn't work in daemon mode either. Daemon repeat gives error message:

GLib-CRITICAL **: Source ID 340 was not found when attempting to remove it

GLib-CRITICAL **: Source ID 342 was not found when attempting to remove it

This may be related:
crunchbang

ClipIt kills clipboard content.

I'm using ClipIt only for Selection buffer. And I've found out it kills clipboard content when I select some text too. Since I don't set 'Use Copy buffer' the 'Sync buffers' is also unset but unfortunately ClipIt resets clipboard from Selection so both Selection buffer and Clipboard contains the same text! If I set 'Use Copy buffer' then nothing is changed - ClipIt still insist to sync buffers any time I do selection. That behavior makes Clipboard unusable and I would like to have that bug fixed. Thank you very much.

Parcellite "Remove History" Only Removes One Item at a Time

Parcellite 1.1.9-1 (installed from repository)

OS: Distro: Linux Mint 18.1 KDE (Serena)
Kernel: 4.4.0-53-generic x86_64 (64 bit gcc: 5.4.0)
Desktop: KDE Plasma 5.8.5 (Qt 5.6.1)

"Clear history" from parcellite in the system tray removes one item at a time. It does not perform a clear of all history.

Same with Linux Mint 18 KDE as well. (currently currently running LM 18.1 KDE)

AppData file does not validate

Hey,

Thanks for doing an AppData file. It unfortunately fails to validate:

appdata-validate /usr/share/appdata/clipit.appdata.xml
/usr/share/appdata/clipit.appdata.xml 1 problems detected:
• markup invalid : Error on line 20 char 7: Element 'p' was closed, but the currently open element is 'description'

You need to delete the

on line 20

Feature request: numbered list

Great app guys.

I use it regularly; it would be useful to have the items in the list numbered.

I usually use the hot-key and hit a number to paste the text I want (with auto paste turned on) sometimes however I get the text before/after what I'm looking for.

GTK3 Segmentation fault on Fedora 25

Hey there,

I am trying help debug an issue with clipit not being able to capture it's hotkey in Fedora 25 when focused on certain GTK3 windows. You can check out the bug report here https://bugzilla.redhat.com/show_bug.cgi?id=1400811

I was trying to build clipit with the --with-gtk3 flag to see if that helped fix the bug linked above and when I try to launch clipit it segfaults. Firing up gdb I was able to get this backtrace.

#0  0x00007ffff69685a7 in XGetModifierMapping (dpy=0x555555783900) at ModMap.c:41
#1  0x0000555555561ccc in reload_modmap (modmap=0x5555557e7180, keymap=0x7fffe0004f80 [GdkWaylandKeymap]) at eggaccelerators.c:549
#2  0x0000555555561ccc in egg_keymap_get_modmap (keymap=0x7fffe0004f80 [GdkWaylandKeymap]) at eggaccelerators.c:646
#3  0x0000555555561f1d in egg_keymap_resolve_virtual_modifiers (keymap=keymap@entry=0x7fffe0004f80 [GdkWaylandKeymap], virtual_mods=virtual_mods@entry=EGG_VIRTUAL_LOCK_MASK, concrete_mods=concrete_mods@entry=0x55555576611c <caps_lock_mask>) at eggaccelerators.c:475
#4  0x000055555555c9a5 in lookup_ignorable_modifiers (keymap=keymap@entry=0x7fffe0004f80 [GdkWaylandKeymap]) at keybinder.c:54
#5  0x000055555555cd7e in keybinder_init () at keybinder.c:242
#6  0x0000555555559cfa in clipit_init () at main.c:820
#7  0x0000555555559cfa in main (argc=<optimized out>, argv=<optimized out>) at main.c:891

I am hoping to help you get this sorted out as clipit has been a key part of my daily workflow for years.

Enable Tab key in "Manage History" dialog

Hello.
Could you please enable Tab key to switch focus in "Manage History" dialog? That'd be much more convenient than using the mouse.
I'm using version 1.4.1 with KDE 4.7.3 if that matters.
Thanks.

Remove history size limit

I would like to have a history size bigger than 1000. Is it possible to remove that limit?
(I have tried checking out the code and compile it, but it fails with some missing gtk lib, even though I have it installed.)

sequential paste/"pop mode" (feature request)

Suppose I want to copy a name, say "Bob Smith", and an email, say "[email protected]" from a document, into
a form that has three fields:
(1) "First Name", (1) "Last Name", and (3) email
I would like to be able to copy "Bob", then copy "Smith", then "copy [email protected]" and then go to the form and paste one after the other. It would be nice if after I pasted one, it was deleted from ClipIt so I don't even have to go to the history and select the next one, it's already loaded and ready to go. I think a fitting name could be "pop mode" where after you paste
something, that entry just pop's off.

Could this be done with native paste directly? If ClipIt does not own the paste, then it could still be implemented by using a different key-binding. That is to say, you could allow the user to pick a key-binding (default to ctrl-alt-v?) that, when called, would use the system's paste function and then pop off the element in ClipIt.

Thank you!

Can I use Mod4 as hotkey

The original hotkey for history is <Ctrl><Alt>H, and I want use Mod4(Windows Key) Key instead.

But it seems dosn't work. Can I use Mod4 as hotkey?

"Manage History" window can't be resized to fit netbook windows

This is an extremely minor problem, as using the Alt key will allow me to access all of the window contents and buttons, but it is something that I would like to see addressed.

When I click on "Manage History," the window that pops up is too tall for the buttons to be seen at the bottom of the window. Here's a screenshot to explain. http://i.imgur.com/3JcOT.png

When I try to resize the window, I cannot resize it to be any smaller vertically.

automatic paste ^V

I enabled this option automatic paste. if i run in terminal to paste something all i see is ^V. This feature was working for me in diodon but im looking for alternatives since diodon has crashed.

Clipit Wll Not Run - LM 18 and LM 18.1 KDE

Clipit will not run on either LM 18 KDE or LM 18.1 KDE. Installed Clipit from Terminal (or Synaptic Package Manager). It fails to start, period. I get a mouse busy indicator when I start from Utilities -> Clipit. But the application never loads.

It was fine with version LM KDE 17.3. It also works on LM Cinnamon 18 and LM Cinnamon 18.1 as well. I suspect something with the new plasma desktop on KDE 18. But have not delved into it further.

Clipit Version – 1.4.2-1ubuntu1

System: KDE Plasma 5.8.5 (Qt 5.6.1) Distro: Linux Mint 18 Sarah

EXTRA DEBUG INFO: This is on Linux Mint KDE 18.1

  1. Clipit will NOT run from Utilities -> Clipit when installed. Busy mouse cursor, then nothing.
    Ksysguard shows clipit process is running. Kill it.

  2. Some work arounds... a) Install clipit. b) From Terminal run 'usr/bin/clipit'.
    It will run and load in system tray and popup "do you want clipit to save history?" Say YES.
    This creates "~/.config/clipit/clipitrc" as expected. BUT...
    First error “GTK-WARNING ... adwaita”. Install package 'gnome-themes-standard'.
    THEN Switch cursor theme in Settings->Workspace Theme->Cursor Theme to 'Adwaita' to eliminate
    this first error when run from terminal.
    Second error message from terminal "WARNING **: Binding 'A' failed!"
    To eliminate this one open clipit "preferences" from system tray. Redefine as 'X'

  3. Exit clipit from system tray.

  4. Re-run from terminal and both errors are gone and it loads in system tray. STILL cannot execute
    from the menu.

  5. Clipit will also run if you edit KDE applications (right click on start icon). Find clipit and
    "run as different user"... namely root. This results in slight delay in reboot and I only did it
    in playing around.

Synchonise clipboards hotkey (feature request)

Generally for my setup the synchronise clipboards option is not really useable, as selecting text to delete will copy primary ahead of the clipboard text you want to replace it with. But there are times when you really want to synchronise for situations that only use one or the other clipboard, so that you don't have to open the history and manually select the last one, which I find myself doing all day!

So it would be great to have a hotkey that synchronises the clipboards just once, not actually turning the synchronise option on. And maybe it would only be a few extra lines of code?

compile error

I tried compiling ClipIt under Ubuntu 16.10 as specified in README here but I've got the following error at the end of the second (./configure) step:

checking for GTK... no
configure: error: Package requirements (gtk+-2.0 >= 2.10) were not met:

No package 'gtk+-2.0' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables GTK_CFLAGS
and GTK_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

clipit and clipit-gtk3 does not work under Manjaro LXQt

Under LXQt Clipit-gtk3 (and clipit too) does not work. If I launch it in a terminal, I can see the icon in the taskbar but get also an information of a problem: "clipit
(clipit:14268): Gdk-CRITICAL **: gdk_window_thaw_toplevel_updates: assertion 'window->update_and_descendants_freeze_count > 0' failed"
The arch-package-maintainer oberon2007 proposed to inform github. I hope, I did it in a good way.

Add "Open Clipboard Manager" entry to context menu.

It would be nice if clipit could add an entry to the right-click context menu which would open the 'Manage history' dialog when right clicking on a text entry box or an open space. This would mean less clicks for some users, and would be much faster for users of dock apps like AWN with autohide features where you must wait for the dock to appear before the notification area is visible. Instead, you could just right click and open the history manager from there...

Add MATE to OnlyShowIn field

Hi, could you add MATE to the OnlyShowIn field of clipit-startup.desktop? Without this it fails to autostart when a user is using MATE as their desktop environment.

Thanks.

Wayland Support

This is a new issue that is related to #57 and https://bugzilla.redhat.com/show_bug.cgi?id=1400811

I opened a bug with GNOME (https://bugzilla.gnome.org/show_bug.cgi?id=775905) about clipit no longer being able to capture the hotkey to bring up the dialog box when focused on a GTK3 application and and they gave the following explanation:

This is the intended behavior; it's by design that arbitrary clients cannot eaves drop on keys from other clients. The reason why it happens to work sometimes is that GTK2 clients still use X11, meaning the eaves dropping still works when interacting with X11 clients via Xwayland. When focusing a GTK3 client, it connects via Wayland, and as a result, Xwayland will not be able to broadcast input to all clients wanting it any more, since it wont see the input events at all. In Wayland, the clipboard manager has to be part of the compositor.

Sounds like clipit will need some work to get full support in Wayland.

gtk3 version not working (gtk2 leftovers?)

fails with

(clipit:22458): Gtk-ERROR **: GTK+ 2.x symbols detected. Using GTK+ 2.x and GTK+ 3 in the same process is not supported
Trace/breakpoint trap (core dumped)

attempting to run it on Archlinux under gtk3 3.22
@pblaszczyk ?

ClipIt support for KStatusNotifierItem/AppIndicator

#Hello,

I have just upgraded to Fedora 27 with Gnome 3.26; the tray indicator got nuked in this gnome version.
I can make ClipIt icon appear again with TopIcons plus extension, but I prefer KStatusNotifierItem/AppIndicator extension instead, which from my understanding use AppIndicator scheme.

ClipIt seems to advertise AppIndicator support but it doesn't work with KStatusNotifierItem/AppIndicator extension.

I know for Dropbox I have to put XDG_CURRENT_DESKTOP=Unity in the desktop file since Dropbox only uses AppIndicator when it runs on Unity.

Does ClipIt has something similar? How should debug this?

Improve Exclude feature to exclude strings (passwords) from apps like keepass(x)

I cannot find documentation anywhere?
It says "Regex list of items that should not be inserted".
it does work when i insert the actual password as regex, but i find that nonsensical.
so, would the passwords to be excluded have to contain a string that would make them recognizable?
or can the feature be used to e.g. tell clipit "do not remember anything copied from keepassx"?

Autostart ClipIt in Unity / Don't add global autostart

Currently ClipIt starts automatically only in Gnome, XFCE and LXDE sessions. This is due to a clipit-startup.desktop file defined as:

OnlyShowIn=GNOME;XFCE;LXDE;

To autostart in Unity, one has to edit this file in /etc/xdg/autostart, or add ClipIt to user-defined autostart applications (in ~/.config/autostart) - this however leads to ClipIt being launched twice in Gnome session, unless OnlyShowIn=Unity; is defined in custom launcher...

So the easy fix is to add Unity to the global launcher. However it's a question, whether to automatically add global launcher, which can't be easily disabled by user (think of multi-user systems) - the best way would be a user option in ClipIt's Settings to enable/disable autostart.

Prevent clipit from storing clipboard history

Hi,

I am mainly using clipit to sync my primary and graphical clipboards, and I very rarely use the history feature. But there does not seem to be any way to prevent it from storing history, either temporarily or permanently.

Moreover, when using tools such as pwgen for generating passwords, the copied password is stored in clipit history, which can be a real security issue.

What about adding such a feature?

Thanks!

Monochrome icon for applet

Clipit should have a monochrome applet icon. Simple as that. I designed one after recently installing the app to use for myself, and if you like, you may package & distribute it with clipit. Have a looksie at it.

manage history "remove" doesn't completely work.

When I open manage history and remove entries on the top by selecting 2 entries and clicking remove, then I go to middle of my list and remove a third entry. When I close the the manage history window, the third entry I "removed" is still there.

example: .. remove items highlighted 1 & 2, then remove 8. It ends up looking like the third column when i close the window when it should look like column two.

1 _______ 3_______3
2_______ 4________4
3 _______ 5_______5
4_______ 6_______6
5 7 7
6 _______9 _______8
7 ________________9
8
9

Different name for app icon

In clipit you're using clipit-trayicon as icon name that appears in the panel, but you're also using the same name as "app" icon in the .desktop file.
This leads to errors when using modular icon themes (like Numix for example) because the wrong icon then appears either in the panel or in the dash/launcher.
Could you change the Icon=clipit-trayicon to Icon=clipit (and change the name of the icon itself of ourse) in the .desktop file?

Clipit actions info request

Could anyone please explain how to use the actions feature of clipit?
I've tried to use bash scripting but nothing happens when action is selected.
I've also tried to set just '%s' in the command to check if it returns the same value than selected bu nothing happens. I'm missing something...

Is this feature really working?

Thanks for the help.
Pablo

release / tag please

I'm maintaining the clipit and clipit-gtk3 packages in the AUR and would very much like to update to the latest development. However it would really be good to have proper git-tags/releases for that.
Latest available tag on github is currently still 1.4.2 from April 4 2012 !

Clipit wakes up the CPU 60 times a second

On my Ubuntu 13.04 system with Clipit 1.4.1, powertop shows Clipit wakes up the CPU 60 times a second.

Surely that's not required and wastes energy and battery.

Can this be reduced?

Errors generated while running automake

There are 3 errors being generated. See the log:

./autogen.sh
autopoint...
Creating /aclocal.m4 ...
Running autopoint... Ignore non-fatal messages.
Making aclocal.m4 writable ...
intltoolize...
aclocal...
aclocal: warning: autoconf input should be named 'configure.ac', not 'configure.in'
configure.in:22: warning: macro 'AM_GLIB_GNU_GETTEXT' not found in library
configure.in:82: warning: macro 'AM_PATH_GTK_2_0' not found in library
configure.in:83: warning: macro 'AM_PATH_GLIB_2_0' not found in library
autoheader...
automake...
automake: warning: autoconf input should be named 'configure.ac', not 'configure.in'
configure.in:6: warning: AM_INIT_AUTOMAKE: two- and three-arguments forms are deprecated. For more info, see:
configure.in:6: http://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_005fINIT_005fAUTOMAKE-invocation
configure.in:28: warning: The 'AM_PROG_MKDIR_P' macro is deprecated, and its use is discouraged.
configure.in:28: You should use the Autoconf-provided 'AC_PROG_MKDIR_P' macro instead,
configure.in:28: and use '$(MKDIR_P)' instead of '$(mkdir_p)'in your Makefile.am files.
configure.in:28: installing './compile'
configure.in:28: installing './config.guess'
configure.in:28: installing './config.sub'
configure.in:6: installing './install-sh'
configure.in:6: installing './missing'
automake: warning: autoconf input should be named 'configure.ac', not 'configure.in'
src/Makefile.am:4: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
src/Makefile.am: installing './depcomp'
autoconf...
configure.in:22: error: possibly undefined macro: AM_GLIB_GNU_GETTEXT
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
configure.in:82: error: possibly undefined macro: AM_PATH_GTK_2_0
configure.in:83: error: possibly undefined macro: AM_PATH_GLIB_2_0
now run configure

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.