Image search on Google Lens, OCR and QR scan directly from the built-in GNOME Screenshot tool.
Shotzy.mp4
Install Tesseract OCR and zbar-tools before proceeding (if you wish to use OCR / QR scanning):
# Arch
sudo pacman -S tesseract tesseract-data-eng
sudo pacman -S zbar
# Ubuntu/Debian
sudo apt install tesseract-ocr
sudo apt install zbar-tools
# NixOS
add this somewhere in you config
environment.systemPackages = [
zbar
pkgs.tesseract # to install all languages
# or (pkgs.tesseract.override { enableLanguages = [ "eng" "rus" ]; }) to install only specific lanuages
];
environment.variables = {
TESSDATA_PREFIX = "${pkgs.tesseract}/share/tessdata";
};Shotzy detects installed OCR languages from TESSDATA_PREFIX env variable or from /usr/share/tessdata if not specified.
Install extra Tesseract language packs to make them selectable in the OCR settings.
mkdir -p ~/.local/share/gnome-shell/extensions/shotzy@SamkitJain660.github.io && \
wget -qO- https://github.com/SamkitJain660/Shotzy/archive/refs/heads/main.tar.gz | \
tar -xz --strip-components=1 -C ~/.local/share/gnome-shell/extensions/shotzy@SamkitJain660.github.ioCompile schemas:
glib-compile-schemas ~/.local/share/gnome-shell/extensions/shotzy@SamkitJain660.github.io/schemas/Then restart GNOME Shell and enable the extension:
gnome-extensions enable shotzy@SamkitJain660.github.io