Skip to content

interface between common screenshot utilities and a file uploader/URL shortener

License

Notifications You must be signed in to change notification settings

itsvexyyy/lainshot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

lainshot

WTFPL
command line ShareX wannabe

lainshot serves as an interface between popular screenshot utilities and a file uploader/URL shortener. Currently, custom uploaders/shorteners are not supported, but this may change in the future.

Default uploader: pomf.lain.la
Default URL shortener: love-la.in

Supported screenshot utilities:

Usage

Running lainshot with no options defaults to lainshot -a -s, which will screenshot the active window and save it. In most cases, pictures are saved to ~/Pictures/Screenshots by default, which will be created if it does not exist.

Options

Screenshot type

  • -a/--active-window - Screenshot the active window
  • -r/--region - Manually select a region to capture

Saving/uploading

  • -d DIR/--dir DIR - Specify a directory to save the screenshot in
  • -s/--save-only - Save the screenshot locally without uploading it
  • -p/--upload-only - Upload the screenshot and delete the local file
  • -u/--upload - Upload the screenshot and save it locally
  • -l/--shortlink - Generate and output a shortlink after uploading

Output
By default, the script outputs either the file name or URL to stdout.

  • -c/--clipboard - Copies the output to the KDE Klipper clipboard, if available, in addition to stdout.

Screenshot Utilities

  • --scrot - Forces the use of scrot to take the screenshot. Will fail if scrot is not present.
  • --shutter - Forces the use of shutter to take the screenshot. Will fail if shutter is not present.
  • --spectacle - Forces the use of spectacle to take the screenshot. Will fail if spectacle is not present.

Future plans

  • Custom uploader/shortener support
  • Support a wider array of screenshot utilities

made with love by vexyyy

About

interface between common screenshot utilities and a file uploader/URL shortener

Topics

Resources

License

Stars

Watchers

Forks

Languages