A read-only mirror of https://github.com/hyprwm/hyprpicker
Find a file
Dylan Laduranty 653eddcbc3
cmake: remove unneeded dependencies (#81)
Signed-off-by: Dylan Laduranty <dylan.laduranty@mesotic.com>
2024-07-15 15:38:47 +02:00
.github/workflows CI: update nix install action 2023-05-03 23:40:19 +03:00
doc Document the --autocopy flag (#15) 2022-11-20 10:37:39 +00:00
nix nix: don't need wlroots as build input 2024-05-11 11:54:20 +03:00
protocols initial commit 2022-09-02 18:06:00 +02:00
src core: fix segfault when cursor_shape is not supported (#76) 2024-06-11 17:18:23 +02:00
.clang-format clang-format, no-zoom and render-inactive 2023-03-31 17:41:40 +01:00
.gitignore initial commit 2022-09-02 18:06:00 +02:00
CMakeLists.txt cmake: remove unneeded dependencies (#81) 2024-07-15 15:38:47 +02:00
flake.lock flake.lock: update nixpkgs 2023-05-16 22:27:51 +03:00
flake.nix Nix: override wayland-protocols until merged 2024-03-24 14:24:36 +02:00
LICENSE Initial commit 2022-09-02 18:04:12 +02:00
README.md README: add required Debian packages to build 2024-07-02 01:45:34 +03:00

hyprpicker

A wlroots-compatible Wayland color picker that does not suck.

hyprpickerShort

Usage

Launch it. Click. That's it.

Options

-f | --format=[fmt] specifies the output format (cmyk, hex, rgb, hsl, hsv)

-n | --no-fancy disables the "fancy" (aka. colored) outputting

-h | --help prints a help message

-a | --autocopy automatically copies the output to the clipboard (requires wl-clipboard)

-r | --render-inactive render (freeze) inactive displays too

-z | --no-zoom disable the zoom lens

Building

Arch

yay -S hyprpicker-git

Manual

Install build dependencies (Debian):

apt install --no-install-recommends -y cmake g++ make pkg-config libpango1.0-dev libjpeg-dev libwayland-dev wayland-protocols libxkbcommon-dev libgles2-mesa-dev

Building is done via CMake:

cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_INSTALL_PREFIX:PATH=/usr -S . -B ./build
cmake --build ./build --config Release --target hyprpicker -j`nproc 2>/dev/null || getconf _NPROCESSORS_CONF`

Install with:

cmake --install ./build

Caveats

"Freezes" your displays when picking the color.