LinuxCommandLibrary

hyprpicker

Pick screen color

TLDR

Pick a color in the default (hex) format

$ hyprpicker
copy

Pick a color and output in a specific format
$ hyprpicker [[-f|--format]] [hex|rgb|hsl|hsv|cmyk]
copy

Copy the picked color to the clipboard
$ hyprpicker [[-a|--autocopy]]
copy

Disable colored output (print plain text only)
$ hyprpicker [[-n|--no-fancy]]
copy

Store the picked color in a shell variable
$ [color]=$(hyprpicker [[-f|--format]] [hex])
copy

Display help
$ hyprpicker [[-h|--help]]
copy

SYNOPSIS

hyprpicker [OPTION]…

PARAMETERS

-a, --always-on-top
    Keep picker window always on top

-r, --render-selected
    Render selected color preview in picker window

-p, --purpura
    Enable purpura mode (blur screen except target color)

-n, --no-interval
    Disable automatic rendering interval

-i , --interval
    Set rendering interval in milliseconds (default: 60)

-f , --format
    Output format: hex (default), rgb, hsl

-t , --target-color
    Set target color (hex) for purpura mode

-h, --help
    Display help and exit

DESCRIPTION

Hyprpicker is a lightweight, performant color picker utility designed exclusively for the Hyprland Wayland compositor. It enables users to capture colors directly from the screen using a precise crosshair selector. Upon clicking, it outputs the selected color's value to stdout in formats like hex, RGB, or HSL, facilitating easy integration into scripts, theming tools, or design workflows.

Key features include a floating picker window, optional preview rendering of the selected color, and advanced modes like purpura, which blurs the entire screen except the area around a target color for precise matching. Rendering occurs at configurable intervals for smooth operation, and the tool leverages Hyprland's GPU-accelerated rendering for minimal latency. Ideal for developers and designers in Wayland environments, hyprpicker requires Hyprland to be running and outputs nothing on cancel (ESC key), returning exit code 1 on failure.

CAVEATS

Requires running Hyprland compositor; Wayland-only; no output on cancel (exit 1); may conflict with other overlays.

EXIT CODES

0: Success (color printed to stdout); 1: Cancelled or error

EXAMPLE USAGE

hyprpicker -r | wl-copy
Copies selected hex color to clipboard

HISTORY

Developed by Vaxry as part of Hyprland utilities in 2023; actively maintained in Hyprland GitHub repo for Wayland color picking needs.

SEE ALSO

hyprctl(1), grim(1), wl-color-picker(1)

Copied to clipboard