Skip to content

Commit

Permalink
ames.sh: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
eshrh committed Nov 11, 2021
1 parent 0d21399 commit fb071d5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ames.sh
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,8 @@ record() {
-af "volume=${AUDIO_VOLUME},silenceremove=1:0:-50dB" \
-ab $AUDIO_BITRATE \
"$audioFile" 1>/dev/null &
echo "$!" >> "$recordingToggle"

echo "$!" >> "$recordingToggle"

if [[ "$LANG" == en* ]]; then
notify-send --hint=int:transient:1 -t 500 -u normal "Recording started..."
Expand All @@ -278,7 +279,7 @@ record() {
local pid="$(sed -n "2p" "$recordingToggle")"

rm "$recordingToggle"
kill -15 "$pid"
kill -15 "$pid"

while [ $(du $audioFile | awk '{ print $1 }') -eq 0 ]; do
true
Expand Down

0 comments on commit fb071d5

Please sign in to comment.