Bash script to make screenshots, upload them to a nextcloud instance, and drop the shareable link into the clipboard.
Find a file
2024-08-08 08:10:36 +02:00
example-config initial commit 2024-08-08 04:23:01 +02:00
modules fix notify-send number of options 2024-08-08 05:03:05 +02:00
LICENSE.md initial commit 2024-08-08 04:23:01 +02:00
README.md updates to README and --help 2024-08-08 05:20:26 +02:00
sshot fix leftover line holding the script 2024-08-08 08:10:36 +02:00

sshot

Bash script to make screenshots, upload them to a nextcloud instance, and drop the shareable link into the clipboard.

Currently only works on hyprland, and assumes archlinux for dependency handling.

Dependencies

Right now , the script only checks for dependencies by their archlinux package names.

paru -S curl grim hyprland imagemagick jq libheif libsecret libxml2 slurp swappy wl-clipboard

Installing

Clone the project to a location that is in your $PATH

git clone https://git.gotek.one/sshot.git > ~/.local/bin/sshot

Getting started:

  • First copy the example config to ~/.config/sshot.conf or right next to sshot.sh where you cloned the repository to.
  • To make use of the nextcloud upload features, you should create an application password in your nextcloud user account.
  • Put the password in your keyring with secret-tool. secret-tool store --label="Nextcloud screenshot script login" nextcloud screenshotScriptLogin

Arguments:

Usage: $0 [ option ] [ argument ] | Defaults marked with ( )"
  -m, --mode <mode>                  Mode: region, window, (monitor), or allmonitors
  -f, --format <format>              Image Format: png, jpg, webp, avif
  -p, --png_compression <level>      PNG compression level. Between 0 and (9)
  -q, --quality <level>              Quality level for lossy formats
                                     Between 0 and 100 (90)
  -l, --lossless_mode <true/(false)> Use webp or avif in lossless mode.
  -n, --nextcloud <true/(false)>     Upload the screenshot to your nextcloud,
                                     and copy the share link to the clipboard
  -e, --edit                         Enable image editing with swappy
  -h, --help                         Display this help message

License

This project is licensed under the Unlicense - see the LICENSE.md file for details