uploaded an aur package based on the fork andykluger mentioned.
I forked this fork such that "oneshot" and "quit on keypress" are always true, and the flag "-c" can be used to copy the result to clipboard.
![]() |
VOOZH | about |
| Git Clone URL: | https://aur.archlinux.org/colorpicker.git (read-only, click to copy) |
|---|---|
| Package Base: | colorpicker |
| Description: | Click on a pixel on your screen and print its color value in RGB. Written for X11. |
| Upstream URL: | https://github.com/Jack12816/colorpicker |
| Keywords: | colorpicker gtk x11 |
| Licenses: | MIT |
| Submitter: | Jack12816 |
| Maintainer: | Jack12816 |
| Last Packager: | Jack12816 |
| Votes: | 16 |
| Popularity: | 0.000001 |
| First Submitted: | 2017-08-31 11:36 (UTC) |
| Last Updated: | 2017-08-31 11:39 (UTC) |
uploaded an aur package based on the fork andykluger mentioned.
I forked this fork such that "oneshot" and "quit on keypress" are always true, and the flag "-c" can be used to copy the result to clipboard.
piping this into something only prints once it exits, i'm trying to get it to show a notification every time a color is selected, one fix would be to use /bin/script -qefc "/bin/colorpicker" /dev/null instead of just /bin/colorpicker but it's long and tedious
Here's a PKGBUILD I just used locally, if you or anyone else is interested:
# Maintainer: Hermann Mayer <hermann.mayer92@gmail.com>
_pkgname=colorpicker
pkgname=${_pkgname}-git
provides=($_pkgname)
conflicts=($_pkgname)
pkgver=r15.419958f
pkgrel=1
pkgdesc='Click on a pixel on your screen and print its color value in RGB. Written for X11.'
arch=('i686' 'x86_64')
url='https://github.com/ym1234/colorpicker'
license=('MIT')
depends=('libx11')
makedepends=('make' 'git')
source=('git+https://github.com/ym1234/colorpicker')
sha512sums=('SKIP')
pkgver() {
cd "${_pkgname}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$_pkgname"
make
}
package() {
cd "$_pkgname"
mkdir -m755 -p ${pkgdir}/usr/bin
install -m777 "$_pkgname" ${pkgdir}/usr/bin/
}
It looks like the best maintained fork now lives at https://github.com/ym1234/colorpicker -- that's the one linked from https://github.com/sdushantha/farge
Maybe you can get your preview feature merged into that one?
EDIT: the linked fork has also reduced dependencies.