Please don’t rely on this Gitea instance being around forever. If any of your build scripts use my (kageru’s) projects hosted here, check my Github or IEW on Github for encoding projects. If you can’t find what you’re looking for there, tell me to migrate it.
simple screenshot + sftp upload in pure sh
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
kageru 173781f4c7
Make this work on Xorg
1 year ago Add local file upload 1 year ago
ppsh Make this work on Xorg 1 year ago

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.


A simple shell screenshot tool that uploads to an ssh server, named after the PPSh, a Soviet submachine gun, because it shoots and ends with sh.

Replacement for my old python script because finding a maintained SFTP library for Python is more effort than its worth.



to capture a screenshot and upload it or

ppsh file.png

to upload file.png to the remote server.


The first few lines of the script are the config variables. Use them to set the remote host, destination folder, etc.


This script will work on Xorg and Wayland by checking the WAYLAND_DISPLAY environment variable.

When used on Xorg, it requires maim for the image capture and xsel for clipboard management.
When used on Wayland, it requires grim/slurp for the image capture and wl-copy for clipboard management.