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:
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.
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 tostdout
.
Screenshot Utilities
--scrot
- Forces the use ofscrot
to take the screenshot. Will fail ifscrot
is not present.--shutter
- Forces the use ofshutter
to take the screenshot. Will fail ifshutter
is not present.--spectacle
- Forces the use ofspectacle
to take the screenshot. Will fail ifspectacle
is not present.
- Custom uploader/shortener support
- Support a wider array of screenshot utilities
made with love by vexyyy