grabc

Tool to identify pixel colors on X
git clone https://git.sinitax.com/muquit/grabc
Log | Files | Refs | README | Upstream | sfeed.txt

commit d22b4c0207fb1bbce1e0b8ad116187d66638aa64
parent 4875cbc373ca15326537d98efb9a5b792482b455
Author: muquit <muquit@gmail.com>
Date:   Wed, 11 Apr 2018 21:00:15 -0400

fix a typo

Diffstat:
MREADME.md | 14++++++--------
Mgrabc.c | 6+++---
2 files changed, 9 insertions(+), 11 deletions(-)

diff --git a/README.md b/README.md @@ -13,7 +13,7 @@ A command line tool for X Window System to identify the color string in hex by c # Synopsis ``` -grabc Version: 1.0.2 +grabc v1.0.2 A program to identify a pixel color of an X Window by muquit@muquit.com https://www.muquit.com/ @@ -29,17 +29,12 @@ Where the options are: -d - show debug messages -a - Print all 16 bits of color. Default is high order 8 bits Example: -* Print pixel color in hex on stdout and rgb on stderr: - Default behavior +* Print pixel color in hex on stdout: $ grabc - * Show usage: $ grabc -h - * Print Window Id (Note the upper case W): $ grabc -W -#0x13234 - * Print pixel color of Window with id 0x13234 at location 10,20 $ grabc -w 0x13234 -l +10+20 ``` @@ -58,7 +53,10 @@ Older version of this program is available on Ubuntu. However, if you need to ge make ``` -# Example +# Know Issues + +* If color grabbed from root window, it might always show #000000 + # ChangeLog diff --git a/grabc.c b/grabc.c @@ -86,14 +86,14 @@ static void show_usage(void) " -v - show version info", " -h - show this usage", " -hex - print pixel value as Hex on stdout", -" -rgb - print pixel value as RGB on stdout", +" -rgb - print pixel value as RGB on stderr", " -W - print the Window id at mouse click", " -w id - window id in hex, use before -l", " -l +x+y - pixel co-ordinate. requires window id", " -d - show debug messages", " -a - Print all 16 bits of color. Default is high order 8 bits", "Example:", -"* Print pixel color in hex on stdout and rgb on stderr:", +"* Print pixel color in hex on stdout:", " $ grabc", "* Show usage:", " $ grabc -h", @@ -106,7 +106,7 @@ static void show_usage(void) }; (void) printf("\n"); - (void) printf("grabc Version: %s\n",VERSION_S); + (void) printf("grabc v%s\n",VERSION_S); (void) printf("A program to identify a pixel color of an X Window\n"); (void) printf("by muquit@muquit.com https://www.muquit.com/\n\n"); (void) printf("Usage: grabc [options]\n");