diff --git a/wayland-screenshot.sh b/wayland-screenshot.sh index 005c88e..f50ee7d 100755 --- a/wayland-screenshot.sh +++ b/wayland-screenshot.sh @@ -6,6 +6,7 @@ Current window Selected area Copy text with OCR (English) Copy text with OCR (Japanese) +Select a color from the screen EOF )" @@ -44,4 +45,10 @@ case "${resp}" in 4) copy_with_ocr jpn ;; + 5) + local color="$(hyprpicker -f hex -n -r)" + (( ${#color} == 0 )) && exit + wl-copy "${color}" + notify-send -t 5000 "Color Selected" "${color}" + ;; esac