scripts/README.md

49 lines
2.3 KiB
Markdown
Raw Normal View History

2024-04-12 15:51:46 +02:00
# scripts
This repository contains some of my scripts. Feel free to use, modify or share as you wish.
Quality of the script and or code might or might not be questionable. I am not responsible
for any accidental rimraffing of your home or any other directories nor for any other damage.
## Index
### `flac2opus_collection.bash`
This script converts a copy of a directory containing `.flac` files and converts them all to opus.
The source folder remains unmodified and the whole directory structure, including non-flac files, will
be simply copied over to the output directory. This serves the purpose of being able to compress
your whole lossless library to copy over to devices which are storage limited and or unable to playback
the lossless files at a quality where they are distinguishable from the compressed files.
#### Overview of arguments
```
arguments:
in [input directory] (required) <The flac directory> {default: none}
out [output directory] (required) <The opus directory> {default: none}
verify [on/off] (optional) <Check converted files for corruption> {default: on}
vbr [on/off] (optional) <Toggle variable bit rate> {default: on}
bitrate [{bitrate}k] (optional) <Set the bitrate to be passed to ffmpeg> {default: 128k}
```
### `zypper_autoremove.bash`
This script replicates the behaviour of `apt autoremove` or `emerge --depclean` by filtering all unneeded
packages and passing them to `zypper rm -u` to remove all of them. You will be prompted to verify the packages
to be removed by zypper.
#### Overview of arguments
This script takes no arguments.
2024-05-16 21:56:40 +02:00
### `webpautoconv.bash`
This script scans directories for webp files and converts them to png files. It can also be run as a daemon
that runs whenever a file is created in the specified (sub)directories.
#### Overview of arguments
```
arguments:
-c/--config [config file] (optional) <The configuration file> {default:~/.config/webpautoconv}
-d/--directory [scan directory] (optional) <The directory to convert files in> {default:~/Downloads}
-w/--watch [none] (optional) <Launch in daemon mode and watch folder> {default:off}
-r/--recursive [non] (optional) <Also scan subdirectories> {default:off}
```