mirror of
https://gitlab.com/octospacc/Configs.git
synced 2025-06-05 21:59:36 +02:00
Termux shortcuts
This commit is contained in:
@@ -4,10 +4,8 @@ cd "$( dirname "$( realpath "$0" )" )"
|
|||||||
CopyCfg() {
|
CopyCfg() {
|
||||||
for Type in "" "."
|
for Type in "" "."
|
||||||
do
|
do
|
||||||
#[ "$(whoami)" = "root" ] && cp -r $1/Root/$Type* /
|
[ "$(whoami)" = "root" ] && [ -d "$1/Root" ] && cp -r $(find "$1/Root" -maxdepth 1 -mindepth 1 -name "$Type*") /
|
||||||
#cp -r $1/Home/$Type* ~/
|
[ -d "$1/Home" ] && cp -r $(find "$1/Home" -maxdepth 1 -mindepth 1 -name "$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*") ~/
|
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
19
Termux/Home/.shortcuts/DrasticVideoFix
Executable file
19
Termux/Home/.shortcuts/DrasticVideoFix
Executable 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"
|
4
Termux/Home/.shortcuts/GamingSync🔃
Executable file
4
Termux/Home/.shortcuts/GamingSync🔃
Executable 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"
|
2
Termux/Home/.shortcuts/OcttKB.Raw-Pull⬇️
Executable file
2
Termux/Home/.shortcuts/OcttKB.Raw-Pull⬇️
Executable file
@@ -0,0 +1,2 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
sh /sdcard/Documents/OcttKB.Raw/local.sh pull
|
2
Termux/Home/.shortcuts/OcttKB.Raw-Push⬆️
Executable file
2
Termux/Home/.shortcuts/OcttKB.Raw-Push⬆️
Executable file
@@ -0,0 +1,2 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
sh /sdcard/Documents/OcttKB.Raw/local.sh push
|
Reference in New Issue
Block a user