update kill usage

This commit is contained in:
2025-12-26 22:19:14 -08:00
parent b2ab7e1ad6
commit 303a7fa837
2 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -9,4 +9,4 @@ elif [ "$1" = "mute" ]; then
wpctl set-mute @DEFAULT_SINK@ toggle
fi
kill -n 35 $(pidof dwmblocks)
kill -35 $(pidof dwmblocks)