A read-only mirror of https://github.com/hyprwm/hyprpicker
Find a file
Pavel Khromov b645b892b1
wayland: Add null check for cursor shape device (#145)
Fixes segmentation fault when running on Wayland compositors that don't support the cursor_shape_v1 protocol (e.g., Wayfire).

The crash occurs in the pointer enter event handler when attempting to call m_pCursorShapeDevice->sendSetShape() without checking if the device was successfully initialized. On compositors without cursor_shape_v1 support, m_pCursorShapeDevice remains null, leading to a null pointer dereference.
2025-10-31 15:03:31 +00:00
.github/workflows CI/Nix: add cache-nix-action 2025-06-20 01:26:39 +03:00
doc docs: change css example in man page to use hsl (#139) 2025-10-01 11:22:45 +01:00
nix Nix: rename utillinux to util-linux (#93) 2024-10-24 17:49:02 +03:00
protocols initial commit 2022-09-02 18:06:00 +02:00
src wayland: Add null check for cursor shape device (#145) 2025-10-31 15:03:31 +00:00
.clang-format clang-format, no-zoom and render-inactive 2023-03-31 17:41:40 +01:00
.clang-tidy clang-tidy: fix some errors (#118) 2025-04-22 23:24:11 +02:00
.gitignore core: move to hyprwayland-scanner (#88) 2024-09-26 12:58:43 +01:00
CMakeLists.txt core: clang-tidy and comp fixes (#110) 2025-02-21 21:32:08 +01:00
flake.lock nix: use gcc15 2025-06-06 01:26:40 +03:00
flake.nix nix: use gcc15 2025-06-06 01:26:40 +03:00
LICENSE Initial commit 2022-09-02 18:04:12 +02:00
README.md core: add Notifications Support (#130) 2025-06-10 18:39:45 +02:00
VERSION version: bump to 0.4.5 2025-05-01 01:54:26 +01:00

hyprpicker

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

hyprpickerShort

Usage

Launch it. Click. That's it.

Options

See hyprpicker --help.

Installation

Arch

sudo pacman -S hyprpicker

Manual (Building)

Install dependencies:

  • cmake
  • pkg-config
  • pango
  • cairo
  • wayland
  • wayland-protocols
  • hyprutils
  • xkbcommon

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.