hyprpicker/README.md

55 lines
1.3 KiB
Markdown
Raw Normal View History

2022-09-02 18:06:00 +02:00
# hyprpicker
A wlroots-compatible Wayland color picker that does not suck.
2022-09-02 21:36:28 +02:00
![hyprpickerShort](https://user-images.githubusercontent.com/43317083/188224867-7d77a3b3-0a66-488c-8019-39b00060ab42.gif)
2022-09-02 18:07:53 +02:00
2022-09-02 18:06:00 +02:00
# Usage
2022-09-02 19:42:07 +02:00
Launch it. Click. That's it.
2022-09-02 18:06:00 +02:00
2022-09-02 20:44:42 +02:00
## Options
`-f | --format=[fmt]` specifies the output format (`cmyk`, `hex`, `rgb`, `hsl`, `hsv`)
2022-09-02 20:44:42 +02:00
`-n | --no-fancy` disables the "fancy" (aka. colored) outputting
`-h | --help` prints a help message
2022-09-02 21:15:22 +02:00
`-a | --autocopy` automatically copies the output to the clipboard (requires [wl-clipboard](https://github.com/bugaevc/wl-clipboard))
2023-04-27 15:46:16 +02:00
`-r | --render-inactive` render (freeze) inactive displays too
`-z | --no-zoom` disable the zoom lens
2022-09-02 18:06:00 +02:00
# Building
2022-09-03 15:58:42 +02:00
## Arch
2022-09-03 15:59:17 +02:00
`yay -S hyprpicker-git`
2022-09-02 19:42:07 +02:00
2022-09-03 15:58:42 +02:00
## Manual
2022-09-02 18:06:00 +02:00
Install build dependencies (Debian):
```sh
apt install --no-install-recommends -y cmake g++ make pkg-config libpango1.0-dev libjpeg-dev libwayland-dev wayland-protocols libxkbcommon-dev
```
Building is done via CMake:
```sh
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:
```sh
cmake --install ./build
```
2022-09-02 18:15:51 +02:00
# Caveats
"Freezes" your displays when picking the color.