add cachyos general

This commit is contained in:
Anders Rytter Hansen 2023-11-05 15:30:06 +01:00
commit db2e555998
8 changed files with 195 additions and 0 deletions

3
containers/general/bin/cointop Executable file
View file

@ -0,0 +1,3 @@
#!/bin/sh
flatpak run com.github.miguelmota.Cointop

View file

@ -0,0 +1,3 @@
#!/bin/sh
export HOME="/var/home/anders"

View file

@ -0,0 +1,3 @@
#!/bin/sh
export HOME="/var/home/anders/containers/general"

23
containers/general/bin/ffmpeg Executable file
View file

@ -0,0 +1,23 @@
#!/bin/sh
#if [ ! -f /run/.containerenv ] && [ ! -f /.dockerenv ]; then
command="podman run -it --rm -v \"$(pwd):$(pwd)\" --workdir=\"$(pwd)\" docker.io/linuxserver/ffmpeg "
for arg in "$@"; do
if echo "${arg}" | grep -Eq "'|\""; then
command="${command} \
$(echo "${arg}" | sed 's|\\|\\\\|g' |
sed 's| |\\ |g' |
sed 's|\$|\\\$|g' |
sed "s|'|\\\'|g" |
sed 's|"|\\\"|g')"
elif echo "${arg}" | grep -q "'"; then
command="${command} \"${arg}\""
else
command="${command} '${arg}'"
fi
done
eval ${command}
#else
# /usr/local/bin/ffmpeg "$@"
#fi

3
containers/general/bin/hostex Executable file
View file

@ -0,0 +1,3 @@
#!/bin/sh
distrobox-host-exec $@