Added color selection option

This commit is contained in:
2023-11-20 23:18:58 -08:00
parent b704168e9c
commit 1a7c989632

View File

@ -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