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