From 1a7c98963215df49966ae1fa4887f4b29326de85 Mon Sep 17 00:00:00 2001 From: Alexander Rosenberg Date: Mon, 20 Nov 2023 23:18:58 -0800 Subject: [PATCH] Added color selection option --- wayland-screenshot.sh | 7 +++++++ 1 file changed, 7 insertions(+) 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