Termux shortcuts

This commit is contained in:
octospacc 2023-03-07 19:28:35 +01:00
parent 1907645f88
commit 69486d2af0
5 changed files with 29 additions and 4 deletions

View File

@ -4,10 +4,8 @@ cd "$( dirname "$( realpath "$0" )" )"
CopyCfg() {
for Type in "" "."
do
#[ "$(whoami)" = "root" ] && cp -r $1/Root/$Type* /
#cp -r $1/Home/$Type* ~/
[ "$(whoami)" = "root" ] && [ -d "$1/Root" ] && cp $(find "$1/Root" -maxdepth 1 -mindepth 1 -name "$Type*") /
[ -d "$1/Home" ] && cp $(find "$1/Home" -maxdepth 1 -mindepth 1 -name "$Type*") ~/
[ "$(whoami)" = "root" ] && [ -d "$1/Root" ] && cp -r $(find "$1/Root" -maxdepth 1 -mindepth 1 -name "$Type*") /
[ -d "$1/Home" ] && cp -r $(find "$1/Home" -maxdepth 1 -mindepth 1 -name "$Type*") ~/
done
}

View File

@ -0,0 +1,19 @@
#!/bin/sh
DestVolume="-33.0"
cd /sdcard/DCIM/ScreenRecorder
[ ! -z "$1" ] && File="$1" || File="$(ls *.mp4 -t | head -n1)"
ffmpeg \
-i "$File" \
-af volumedetect -f null /dev/null \
> ffmpeg.volumedetect.log 2>&1
StartVolume="$(grep mean_volume ffmpeg.volumedetect.log | tail -n1 | rev | cut -d' ' -f2 | rev)"
Volume="$(echo "0 - ($StartVolume - $DestVolume)" | bc)"
ffmpeg \
-i "$File" \
-af volume="${Volume}dB" \
-vf crop=600:450:60:463 \
"New-$File"

View File

@ -0,0 +1,4 @@
#!/bin/sh
#Data="/sdcard/Android/data/org.dolphinemu.dolphinemu/files/GC"
#rclone copy "$Data" "swiss":Cloud/Saves/Dolphin/GC
rclone copy "/sdcard/DraStic/backup" "pi:/Cloud/Repos/Personal-Game-Saves/Saves/DraStic/backup"

View File

@ -0,0 +1,2 @@
#!/bin/sh
sh /sdcard/Documents/OcttKB.Raw/local.sh pull

View File

@ -0,0 +1,2 @@
#!/bin/sh
sh /sdcard/Documents/OcttKB.Raw/local.sh push