Bash script to make screenshots, upload them to a nextcloud instance, and drop the shareable link into the clipboard.
| example-config | ||
| modules | ||
| LICENSE.md | ||
| README.md | ||
| sshot | ||
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.confor right next tosshot.shwhere 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