Skip to main content

Linux ShareX alternitve

Project description

subShare - ShareX linux alternative.

PyPI version


  • Quickly upload and share files, text documents, screenshots and shorten links.
  • Configurable to use your own Nextcloud instance for uploads.
  • Uploading file contents to Hastebin.
  • Shortening links via Polr. (selfhosted/public)


Sharing a file:
Alt text # links are shortened via Polr :D

Sharing a text file:
Alt text

Skip down to usage for more example commands.


I made Subshare since I couldn't find a suitable linux alternative for ShareX, which I used on Windows to capture my screenshots, share text and files after it would upload them to the respective servies. Eg: Nextcloud/Hastebin. So I made something to fit my needs. If there are issues feel free to open up a issue and I'll try to get it fixed. Better yet write some come and help a brotha out? :D


Subshare is available on PyPi and can be installed with pip

pip3 install --user subshare


Linux: escrotum

  • Scrot displayed artifacts when using selection mode. Escrotum fixed this.


The default config file is created on the first run on subshare at ~/.subshare.yaml and concaints the following.

DefaultFileUploader: nextcloud
DefaultImageUploader: nextcloud
DefaultUrlShortener: polr
  savedir: /home/user/screenshots/
  quality: 100
  activated: true
  username: youruser
  password: supersecretpassword
  screenshot_directory: subshare/screenshots
  uploads_directory: subshare/share
  activated: true
  apikey: 123127234982c34c2943c223c4

Enter all your respective details and a true or false for if you want to use Polr to shorten the links or not.


Note: All commands will automatically copy the link to your clipboard.

  • Sharing screenshots: subshare screen captures a regular screenshot. subshare screen select lets you drag out a selection.

  • Sharing text: subshare text /path/to/file will post the contents of the file to Hastebin.

  • Sharing files: subshare file /path/to/file upload the file to your nextcloud instance.

  • Shortening links: subshare link "LINK TO SHORTEN" will shorten the link you specify. Dont forget the quotes around it.


[x] Make Polr optional. [] Add alternative providers for uploading and sharing links... [] idk it pretty much does what I wanted rn. Feel free to make a pull request or open up an issue if you'd like anything added and we'll see what we can do.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for subshare, version 1.1.7
Filename, size File type Python version Upload date Hashes
Filename, size subshare-1.1.7.tar.gz (5.2 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page