update kill usage
This commit is contained in:
8
bin/gsr
8
bin/gsr
@ -3,8 +3,8 @@ GSRPID=$(pidof gpu-screen-recorder)
|
||||
DWMBLOCKSPID=$(pidof dwmblocks)
|
||||
|
||||
if [ -n $GSRPID ]; then
|
||||
kill -n 2 $GSRPID
|
||||
kill -n 36 $DWMBLOCKSPID
|
||||
kill -2 $GSRPID
|
||||
kill -36 $DWMBLOCKSPID
|
||||
notify-send "recording saved" -i :
|
||||
exit
|
||||
fi
|
||||
@ -12,11 +12,11 @@ fi
|
||||
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
|
||||
kill -36 $DWMBLOCKSPID
|
||||
notify-send "recording started with no mic" -i :
|
||||
else
|
||||
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
|
||||
kill -36 $DWMBLOCKSPID
|
||||
notify-send "recording started" -i :
|
||||
fi
|
||||
|
||||
@ -9,4 +9,4 @@ elif [ "$1" = "mute" ]; then
|
||||
wpctl set-mute @DEFAULT_SINK@ toggle
|
||||
fi
|
||||
|
||||
kill -n 35 $(pidof dwmblocks)
|
||||
kill -35 $(pidof dwmblocks)
|
||||
|
||||
Reference in New Issue
Block a user