use test properly
This commit is contained in:
3
bin/gsr
3
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"
|
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"
|
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 -2 $GSRPID
|
||||||
kill -36 $DWMBLOCKSPID
|
kill -36 $DWMBLOCKSPID
|
||||||
notify-send "recording saved" -i :
|
notify-send "recording saved" -i :
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
if [ $1 = 1 ]; then
|
if [ $1 = 1 ]; then
|
||||||
gpu-screen-recorder $VIDEO $AUDIONOMIC $OUTPUT&
|
gpu-screen-recorder $VIDEO $AUDIONOMIC $OUTPUT&
|
||||||
kill -36 $DWMBLOCKSPID
|
kill -36 $DWMBLOCKSPID
|
||||||
|
|||||||
Reference in New Issue
Block a user