Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I need a small tool to ‘pick’ a colour anywhere on the screen (so that I basically get the hex code for it). Earlier, I've used KDE's KColorChooser for this.

According to this page, "Gpick" sounds like what I want, but:

$ apt-cache search gpick
<returns nothing>

Any recommendations?

share|improve this question

3 Answers 3

up vote 18 down vote accepted

That's strange, as I get the following :

apt-cache search gpick
gpick - advanced GTK+ color picker

I suppose it could be in a source that you currently don't have enabled..

That being said for simple colour picking I prefer gcolor2 - Nice and simple to use and should do exactly what you require.

You can install it with following command:

sudo apt-get install gcolor2
share|improve this answer
2  
Thanks! Hmm, looking around at packages.ubuntu.com, it seems gpick just isn't available for 11.04 (Natty). However, gcolor2 does exactly what I want, so I won't investigate the gpick issue further :) –  Jonik Nov 23 '11 at 16:34

I like to use the software agave. It's a simple software that gives your color combinations, and it has a color picker.

sudo apt-get install agave

Worth give it a try!

Regards

share|improve this answer
    
+1. Agave does this too, and it seems to use the exact same component that is basically the gcolor2 tool. (I'm accepting gcolor2 because it's a nice minimal solution, giving this functionality and nothing else.) –  Jonik Nov 23 '11 at 16:29

If it wasn't mention, gcolor2 can also sample color from all over the desktop.

But I got curious about gpick, and tried to install a newer version on Natty. So I got:

  • liblua5.2-0_5.2.0-2_i386.deb for precise (there's no earlier); installs in natty via GDebi Package Installer
  • gpick_0.2.5-1_i386.deb from their code.google.com website; installs in natty via GDebi Package Installer (with previous dependency installed)

... however, at this point:

$ gpick 
gpick: /usr/lib/i386-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by gpick)

Then I tried getting libstdc++6_4.6.3-1ubuntu5_i386.deb and extracting (not installing) it; and using this:

$ LD_LIBRARY_PATH=/home/user/Desktop/libstdc++6_4.6.3-1ubuntu5_i386/usr/lib/i386-linux-gnu gpick
gpick: symbol lookup error: gpick: undefined symbol: g_dbus_object_manager_server_new

... damn, so it needs more dependencies satisfaction (and if one starts messing with libc, one may as well update the OS :) )

Anyways, back to gpicks webpage, there is a link PPA at Launchpad there - so I got gpick_0.2.0-1~ppakarmic1_i386.deb from the PPA Packages ... page. Installed it again via GDebi Package installer (removing the previous, newer one first, with sudo dpkg -r gpick) - and it works! And even if it's not the latest version, I think it looks quite awesome.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.