Skip to content
This repository has been archived by the owner on May 10, 2023. It is now read-only.

ybgirgin3/SCTC

Repository files navigation

SCREENSHOT TO CLIPBOARD FOR LINUX

( - tested on ubuntu 20.04)

for tracking the application future please see:TODO

USAGE:

  • run getSS.py file from terminal using python3
 $ python3 getSS.py         # to get text to clipboard
 $ python3 getSS.py --save  # only save image
  • draw rectangle to target area
  • and done..

INSTALLATION

for ubuntu >= 18.04 & Mac

required packages

  • scrot-1.6 (apt includes older version do NOT use it, if your system already have it simply uninstall and install this 🙃)

- using conda (recommended) if you are using conda, don't forget to keep your conda environment active whole installation process

$ conda install -c conda-forge tesseract-ocr \
  conda install -c conda-forge dbus-python \
  sudo apt install libimlib2-dev \
  pip3 install -r requirements.txt

- using apt

$ sudo apt install tesseract-ocr \
  sudo apt install python3-dbus \
  sudo apt install libimlib2-dev \
  pip3 install -r requirements.txt

- using brew

$ brew install tesseract \
  brew install d-bus \
  sudo apt install libimlib2-dev \
  pip3 install -r requirements.txt

AUTO CONFIG

simply run installer.py file 😃 and it's need to be done..

MANUAL CONFIG

create config.py and paste (you can see my own path in config.py file)

tess_path = "<your tesseract installation path>"
save_path = "<pictures folder>"

to get tesseract bin path for linux

$ which tesseract

create your sctc file like this:

<path/to/your/python> <absolute/path/of/this/dir/getSS.py>

and then you can use SCTC globally

About

SCTC (Screenshot To Clipboard) an alternative to MacOS Screenshot to Clipboard feature for Linux

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages