dotfiles

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 30f8c087c54c09b69a88eed53e45b48d50104ffd
parent c003ba9c34636cf94efdad07df93019e002f3bd8
Author: Luke Smith <luke@lukesmith.xyz>
Date:   Sat, 29 Sep 2018 15:52:05 -0400

ugly but werkable kill script fix

Diffstat:
M.scripts/dmenurecord | 7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/.scripts/dmenurecord b/.scripts/dmenurecord @@ -15,10 +15,15 @@ updateicon() { \ } killrecording() { - kill -9 "$(cat ~/.recordingpid)" + recpid="$(cat ~/.recordingpid)" + # kill with SIGTERM, allowing finishing touches. + kill -15 "$recpid" rm -f ~/.recordingpid updateicon "" pkill -RTMIN+9 i3blocks + # even after SIGTERM, ffmpeg may still run, so SIGKILL it. + sleep 3 + kill -9 "$recpid" exit }