HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

colorpicker — A minimalist X11 colorpicker. Any mouse gesture except `<LeftClick>` will exit the program. More inf

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandanycolorpickerclimouseminimalistx11

Problem

How to use the colorpicker command: A minimalist X11 colorpicker. Any mouse gesture except <LeftClick> will exit the program. More information: <https://github.com/ym1234/colorpicker>.

Solution

colorpicker — A minimalist X11 colorpicker. Any mouse gesture except <LeftClick> will exit the program. More information: <https://github.com/ym1234/colorpicker>.

Launch colorpicker and print the hexadecimal and RGB value of each clicked pixel to stdout:
colorpicker


Only print the color of one clicked pixel and then exit:
colorpicker --one-shot


Print the color of each clicked pixel and quit when a key is pressed:
colorpicker --quit-on-keypress


Only print the RGB value:
colorpicker --rgb


Only print the hexadecimal value:
colorpicker --hex

Code Snippets

Launch colorpicker and print the hexadecimal and RGB value of each clicked pixel to `stdout`

colorpicker

Only print the color of one clicked pixel and then exit

colorpicker --one-shot

Print the color of each clicked pixel and quit when a key is pressed

colorpicker --quit-on-keypress

Only print the RGB value

colorpicker --rgb

Only print the hexadecimal value

colorpicker --hex

Context

tldr-pages: common/colorpicker

Revisions (0)

No revisions yet.