use STATUSBAR variable safely

This commit is contained in:
Luke Smith
2019-11-24 08:10:31 -05:00
parent 499e222fd7
commit 3a91dc30f2
8 changed files with 10 additions and 10 deletions

View File

@@ -11,7 +11,7 @@
updateicon() { \
echo "$1" > /tmp/recordingicon
pkill -RTMIN+9 i3blocks
pkill -RTMIN+9 "${STATUSBAR:?}"
}
killrecording() {
@@ -20,7 +20,7 @@ killrecording() {
kill -15 "$recpid"
rm -f /tmp/recordingpid
updateicon ""
pkill -RTMIN+9 i3blocks
pkill -RTMIN+9 "${STATUSBAR:?}"
# even after SIGTERM, ffmpeg may still run, so SIGKILL it.
sleep 3
kill -9 "$recpid"