diff options
| author | 2023-11-10 19:24:56 -0500 | |
|---|---|---|
| committer | 2023-11-12 20:04:01 -0500 | |
| commit | acd44bb898996ff4e36b39b10e870e40bcaf2634 (patch) | |
| tree | fa452ee2e583566a4fd28a4ac204cf62a9a1a0bc /scripts | |
| parent | f1a9751af6cc6aa0bac91e7f28fc43b1a4cb64fd (diff) | |
| download | mauri-acd44bb898996ff4e36b39b10e870e40bcaf2634.tar.gz mauri-acd44bb898996ff4e36b39b10e870e40bcaf2634.tar.bz2 mauri-acd44bb898996ff4e36b39b10e870e40bcaf2634.zip | |
One last push
Signed-off-by: Andrew Opalach <andrew@akon.city>
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/line_count.sh | 2 | ||||
| -rwxr-xr-x | scripts/random.sh | 26 |
2 files changed, 28 insertions, 0 deletions
diff --git a/scripts/line_count.sh b/scripts/line_count.sh new file mode 100755 index 0000000..2ecb7f5 --- /dev/null +++ b/scripts/line_count.sh @@ -0,0 +1,2 @@ +#! /usr/bin/env sh +find ./src -type f | xargs wc -l diff --git a/scripts/random.sh b/scripts/random.sh new file mode 100755 index 0000000..00689a8 --- /dev/null +++ b/scripts/random.sh @@ -0,0 +1,26 @@ +#! /usr/bin/env bash + +BUILD_DIR=build-nix-release +WALLPAPERS_PATH=workshop_wallpapers_11-8-21 +#WALLPAPERS_PATH=workshop_wallpapers + +while : ; do +DIR=$(find $WALLPAPERS_PATH -mindepth 1 -maxdepth 1 -type d -print0 | shuf -zn1 | xargs --null) +if [[ $1 == "audio" ]] +then + RES=$(cat $DIR/project.json | jq '.["general"]["supportsaudioprocessing"]') + [[ ! -f $DIR/scene.pkg || "$RES" == 'null' || "$RES" == 'false' ]] || break +elif [[ $1 == "safe" ]] +then + RES=$(cat $DIR/project.json | jq '.["contentrating"]') + [[ ! -f $DIR/scene.pkg || "$RES" == 'null' || "$RES" != '"Everyone"' ]] || break +else + [[ ! -f $DIR/scene.pkg ]] || break +fi +done + +echo $DIR + +cd $BUILD_DIR +./mauri -p ../$DIR/scene.pkg -w 1600 -h 900 +cd .. |