Added color selection option

This commit is contained in:
Alexander Rosenberg 2023-11-20 23:18:58 -08:00
parent b704168e9c
commit 1a7c989632
Signed by: Zander671
GPG Key ID: 5FD0394ADBD72730

View File

@ -6,6 +6,7 @@ Current window
Selected area Selected area
Copy text with OCR (English) Copy text with OCR (English)
Copy text with OCR (Japanese) Copy text with OCR (Japanese)
Select a color from the screen
EOF EOF
)" )"
@ -44,4 +45,10 @@ case "${resp}" in
4) 4)
copy_with_ocr jpn 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 esac