home | help
COLORMETER(1)		     General Commands Manual		   COLORMETER(1)

NAME
     colormeter -- X11 pixel magnifier with live RGB readout

SYNOPSIS
     colormeter

DESCRIPTION
     colormeter  opens	a small window containing a magnified view of the pixels
     surrounding the pointer, together with a status bar showing  the  color  of
     the pixel under the pointer in both hexadecimal and decimal RGB notation.

     The zoom pane magnifies a square region centered on the pointer by a factor
     of  15, yielding a 20 by 20 grid of screen pixels drawn as magnified cells.
     The cell corresponding to the sampled pixel is highlighted with an aperture
     marker.

     When the pointer moves over the zoom pane itself, colormeter switches to  a
     held  snapshot  of  the  last view taken outside its own window and samples
     colors from that snapshot.  This prevents the  meter  from  magnifying  and
     sampling  its own magnified cells in a feedback loop, and allows individual
     cells of the frozen view to be inspected by pointing at them.

BINDINGS
     Ctrl+L	   Toggle the sample lock.  This binding is grabbed globally  on
		   the	root  window, so it works regardless of which window has
		   focus, and regardless of the state of Caps Lock, Num Lock, or
		   Scroll Lock.  While locked, the sampled color is  frozen  and
		   the	status	bar  background turns yellow; the pointer may be
		   moved freely without disturbing  the  sample.   Press  Ctrl+L
		   again to resume live sampling.

     Button1 drag  Move  the window.  A press followed by more than a few pixels
		   of	pointer   travel    initiates	 a    move    via    the
		   _NET_MOVERESIZE_WINDOW protocol; a simple click is a no-op.

     q		   Quit.    Only   honored  for  key  events  delivered  to  the
		   colormeter window itself.  Escape is deliberately not a  quit
		   key,  as  window  manager  menu and restart paths can deliver
		   stray Escape key events.

STATUS BAR
     The status bar below the zoom pane shows  the  sampled  color  as	"#RRGGBB
     (rrr,ggg,bbb)", or "(no sample)" before the first sample is taken.  A white
     background  indicates live sampling; a yellow background indicates the sam-
     ple is locked.

     The status bar text is rendered with the "Source Code Pro Medium" font when
     available, falling back to "DejaVu Sans Mono".

     The window title remains  "Color  Meter"  at  all	times,	including  while
     locked, so window manager style rules continue to match.

ENVIRONMENT
     DISPLAY  The X11 display to connect to.

     HOME     Location	of  the  user's  home directory, used to locate the exit
	      log.

FILES
     ~/.cache/colormeter-exit.log
	     Each exit appends a line recording the time and  reason  colormeter
	     terminated,  to  aid  in  diagnosing unexpected exits under session
	     managers and window manager restarts.

EXIT STATUS
     The colormeter utility exits 0 on success, and >0 if an error occurs.

SEE ALSO
     X(7)

AUTHORS
     Devin Teske <dteske@FreeBSD.org>

FreeBSD ports 15.quarterly	  July 24, 2026 		   COLORMETER(1)

home | help