diff --git a/bin/gsr b/bin/gsr index e6b868f..69d2f9a 100755 --- a/bin/gsr +++ b/bin/gsr @@ -6,14 +6,13 @@ AUDIONOMIC="-ac opus -a default_output" VIDEO="-w DP-3 -k av1_10bit -c mkv -fm content -bm vbr" OUTPUT="-o $HOME/wdraidz/media/game-videos/$(date +%m-%d-%Y_%R:%S).mkv" -if [ $GSRPID != 0 ]; then +if [ -n "$GSRPID" ]; then kill -2 $GSRPID kill -36 $DWMBLOCKSPID notify-send "recording saved" -i : exit fi - if [ $1 = 1 ]; then gpu-screen-recorder $VIDEO $AUDIONOMIC $OUTPUT& kill -36 $DWMBLOCKSPID