make POSIX sh compliant

This commit is contained in:
2025-12-18 14:12:29 -08:00
parent 1f48d9808c
commit cdae221acf
11 changed files with 63 additions and 20 deletions

View File

@ -2,20 +2,20 @@
GSRPID=$(pidof gpu-screen-recorder)
DWMBLOCKSPID=$(pidof dwmblocks)
if [[ -n $GSRPID ]]; then
if [ -n $GSRPID ]; then
kill -n 2 $GSRPID
kill -n 36 $DWMBLOCKSPID
notify-send "recording saved" -i :
exit
fi
if [[ $1 == 1 ]]; then
gpu-screen-recorder -w DP-0 -k hevc -c mkv -f 60 -bm cbr -q 12000 -ac opus -a "default_output" \
if [ $1 = 1 ]; then
gpu-screen-recorder -w DP-4 -k hevc -c mkv -f 60 -bm cbr -q 12000 -ac opus -a "default_output" \
-o "$HOME/wdraidz/media/game-videos/$(date +%m-%d-%Y_%R:%S).mkv"&
kill -n 36 $DWMBLOCKSPID
notify-send "recording started with no mic" -i :
else
gpu-screen-recorder -w DP-0 -k hevc -c mkv -f 60 -bm cbr -q 12000 -ac opus -a "default_output|default_input" \
gpu-screen-recorder -w DP-4 -k hevc -c mkv -f 60 -bm cbr -q 12000 -ac opus -a "default_output|default_input" \
-o "$HOME/wdraidz/media/game-videos/$(date +%m-%d-%Y_%R:%S).mkv"&
kill -n 36 $DWMBLOCKSPID
notify-send "recording started" -i :