hyprpicker icon indicating copy to clipboard operation
hyprpicker copied to clipboard

Autocopy not working with negative hue in HSV

Open Axenide opened this issue 1 year ago • 2 comments

Hi! When using this command and selecting a color that has a negative hue, wl-copy will not work because it takes it as an option:

> hyprpicker -a -n -f hsv
-11 100% 81%
wl-copy: invalid option -- '1'
Usage:
        wl-copy [options] text to copy
        wl-copy [options] < file-to-copy

Copy content to the Wayland clipboard.

Options:
        -o, --paste-once        Only serve one paste request and then exit.
        -f, --foreground        Stay in the foreground instead of forking.
        -c, --clear             Instead of copying, clear the clipboard.
        -p, --primary           Use the "primary" clipboard.
        -n, --trim-newline      Do not copy the trailing newline character.
        -t, --type mime/type    Override the inferred MIME type for the content.
        -s, --seat seat-name    Pick the seat to work with.
        -v, --version           Display version info.
        -h, --help              Display this message.
Mandatory arguments to long options are mandatory for short options too.

See wl-clipboard(1) for more details.

A workaround is using wl-copy manually but of course this isn't ideal.

Axenide avatar Dec 17 '24 02:12 Axenide

wait how the fuck can hue be negative lol

vaxerski avatar Dec 17 '24 18:12 vaxerski

ikr lol

https://github.com/user-attachments/assets/eacc01de-9cfb-4697-8629-df8b521755aa

Axenide avatar Dec 17 '24 21:12 Axenide