From 303a7fa837715797c51bfbce2988216b5fbaa0af Mon Sep 17 00:00:00 2001 From: pants Date: Fri, 26 Dec 2025 22:19:14 -0800 Subject: [PATCH] update kill usage --- bin/gsr | 8 ++++---- bin/volumectl | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/bin/gsr b/bin/gsr index fcd000f..c68d904 100755 --- a/bin/gsr +++ b/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 diff --git a/bin/volumectl b/bin/volumectl index 06ebe34..ef4f360 100755 --- a/bin/volumectl +++ b/bin/volumectl @@ -9,4 +9,4 @@ elif [ "$1" = "mute" ]; then wpctl set-mute @DEFAULT_SINK@ toggle fi -kill -n 35 $(pidof dwmblocks) +kill -35 $(pidof dwmblocks)