I finally found it. This is a rare find, and it took me days to find it. First you have to
suspect such a thing exists, then find its name, Which is not obviously descriptve.
"Grab C" what? The C language? If you see what I mean. No, grab "c", "c" as in
"color"... Sure it was in a Debian repo all this time. But if nobody knows it's there...
In any case, this color picker works from terminal and returns the RGB number in
terminal. Big deal, you'll say: there are dozens of GUI color pickers at sourceforge,
at github, at the pinetools site, etc., etc. Plus Gimp and Mtpaint have one. -- You're
absolutely right.
Except with a console-based color picker like this grabc, you can readily control it with
say, xdotool, and incorporate the result in a script. And then if the background at that
place on the desktop is dark, you chose a contrasting light-colored icon for your utility,
on the fly.
Something like this, maybe:
Code: Select all
grabc 2> /dev/null | xsel -i
Then you issue this command:
Code: Select all
A="`xsel -o`";echo $A
Or similar use.#6c878e
With the GUI-based color pickers, you can't do that. Or perhaps an expert dev could,
but it would be a complication.
So here you go: "grabc". A rare find for Puppyists. Please treasure it!
BFN.