add fallback script for google lens keybind

This commit is contained in:
end-4
2025-10-23 19:07:18 +02:00
parent 07d3eea1d1
commit d05ae5231c
2 changed files with 7 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
#!/usr/bin/env bash
grim -g "$(slurp)" /tmp/image.png
imageLink=$(curl -sF files[]=@/tmp/image.png 'https://uguu.se/upload' | jq -r '.files[0].url')
xdg-open "https://lens.google.com/uploadbyurl?url=${imageLink}"
rm /tmp/image.png