rootwork / bash-scripts

Some simple bash scripts for image/video conversion, image management, and video editing.
GNU Affero General Public License v3.0
3 stars 1 forks source link
avif bash bash-script bash-scripting image-conversion image-converter image-processing jpeg-xl jxl linux linux-desktop linux-shell shell shell-script shell-scripts shellscript video-conversion video-converter video-processing webp

Bash scripts

License

Scripts marked with a 🌟 are ones I use a lot or am particularly proud of.

Image manipulation

Video manipulation

Boilerplate code

A collection of patterns and snippets I use when writing scripts, many derived from William E. Shotts, Jr. See boilerplate for an overview.

Test files

See test for sample files and sources.

Usage

Download the script files you want. You might need to run chmod +x *.sh to make them executable.

You can use them only in the folder in which they reside, or you can make them system-wide. To do the latter, move them to ~/bin. Then, if you're not doing so already, export this directory to your PATH in .bash_profile, .bashrc, .zshrc, etc.:

export PATH="$HOME/bin:$PATH"

If you wish, you can also add aliases for them, saving three whole characters!

alias minvid="minvid.sh"

Dependencies

All scripts note any dependencies required.

I have tested these on Linux (Linux Mint, based on Ubuntu/Debian) using the Z Shell, but they should run in any Bash-compatible environment.

Linting

All scripts have shellcheck run on them with every save and are auto-formatted with shfmt using the Sublime Text plugin.

Other resources

You may also be interested in my local dotfiles (Linux), which also has flavors in Mac and Windows, as well as a hosted (Linux) setup.

License

GNU Affero General Public License v3.0 or later (AGPL 3+). See LICENSE.