From 280f529766d88741501597aacdf0877b1da508cc Mon Sep 17 00:00:00 2001 From: pants Date: Sun, 4 Jan 2026 01:56:38 -0800 Subject: [PATCH] use test properly --- bin/gsr | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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