diff --git a/Install.sh b/Install.sh index c093c43..69f7ea1 100755 --- a/Install.sh +++ b/Install.sh @@ -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 } diff --git a/Termux/Home/.shortcuts/DrasticVideoFix b/Termux/Home/.shortcuts/DrasticVideoFix new file mode 100755 index 0000000..d7e7a7f --- /dev/null +++ b/Termux/Home/.shortcuts/DrasticVideoFix @@ -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" diff --git a/Termux/Home/.shortcuts/GamingSync🔃 b/Termux/Home/.shortcuts/GamingSync🔃 new file mode 100755 index 0000000..1060870 --- /dev/null +++ b/Termux/Home/.shortcuts/GamingSync🔃 @@ -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" diff --git a/Termux/Home/.shortcuts/OcttKB.Raw-Pull⬇️ b/Termux/Home/.shortcuts/OcttKB.Raw-Pull⬇️ new file mode 100755 index 0000000..5eac943 --- /dev/null +++ b/Termux/Home/.shortcuts/OcttKB.Raw-Pull⬇️ @@ -0,0 +1,2 @@ +#!/bin/sh +sh /sdcard/Documents/OcttKB.Raw/local.sh pull diff --git a/Termux/Home/.shortcuts/OcttKB.Raw-Push⬆️ b/Termux/Home/.shortcuts/OcttKB.Raw-Push⬆️ new file mode 100755 index 0000000..187c5a0 --- /dev/null +++ b/Termux/Home/.shortcuts/OcttKB.Raw-Push⬆️ @@ -0,0 +1,2 @@ +#!/bin/sh +sh /sdcard/Documents/OcttKB.Raw/local.sh push