Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Mon 18 Nov 2019, 21:14
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Graphics
grabc, a CLI onscreen color grabber
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [1 Post]  
Author Message
musher0

Joined: 04 Jan 2009
Posts: 14482
Location: Gatineau (Qc), Canada

PostPosted: Thu 07 Mar 2019, 23:40    Post subject:  grabc, a CLI onscreen color grabber
Subject description: A rare find
 

Hello all.

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:
grabc 2> /dev/null | xsel -i
You drag the mouse on the desktop where your interesting color is, and click.
Then you issue this command:
Code:
A="`xsel -o`";echo $A
Result:
Quote:
#6c878e
Or similar use.

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.
grabc_1.1-2+b2_i386.pet
Description 
pet

 Download 
Filename  grabc_1.1-2+b2_i386.pet 
Filesize  5.33 KB 
Downloaded  110 Time(s) 

_________________
musher0
~~~~~~~~~~
Je suis né pour aimer et non pas pour haïr. (Sophocle) /
I was born to love and not to hate. (Sophocles)
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [1 Post]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Graphics
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0277s ][ Queries: 12 (0.0033s) ][ GZIP on ]