Author: Adam <git@apiote.xyz>
change profile
.config/sh/functions | 1 + .profile | 12 ++++++------
diff --git a/.config/sh/functions b/.config/sh/functions index b05f4a4d914d86436d4e168076ca603d21f5318d..6c8bd98390af8fbd973145a36e5432bf288b8dd2 100644 --- a/.config/sh/functions +++ b/.config/sh/functions @@ -437,6 +437,7 @@ toAV1() { Q=$(ffmpegQ "$1") set -x + # testme ffmpeg -i input.mp4 -c:a copy -c:v libsvtav1 -preset 10 -r 25 -threads 16 -crf 17 svtav1_test.mp4 ffmpeg -i "$1" -crf "$Q" -threads 16 -b:v 0 -c:v libaom-av1 -r 25 -strict experimental -tile-columns 2 -pix_fmt yuv420p "${1%%.*}.av1.webm" } diff --git a/.profile b/.profile index 67e9bbdd098450f4afe8c2a0b34c2f4282ab2f23..64b94882643b8191dcd8bf115affa3ec83424756 100644 --- a/.profile +++ b/.profile @@ -1,12 +1,12 @@ #!/bin/sh -. ~/.config/sh/variables -. ~/.config/sh/variables.wayland +if [ "$WAYLAND_DISPLAY" != "" ] +then + . ~/.config/sh/variables.wayland +fi . "$HOME/.config/sh/variables.$(hostname)" -if [ "$(tty)" = "/dev/tty1" ] && which sway >/dev/null 2>&1 +. ~/.config/sh/variables +if [ "$(tty)" = "/dev/tty1" ] && command -v sway >/dev/null 2>&1 then sway fi - -export NVM_DIR="$HOME/.nvm" -[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm