diff options
| author | Luke Smith <luke@lukesmith.xyz> | 2018-06-15 21:48:42 -0400 |
|---|---|---|
| committer | Luke Smith <luke@lukesmith.xyz> | 2018-06-15 21:48:42 -0400 |
| commit | bc9de2e26a1ce5e4033bd63c94f22b3bab11e808 (patch) | |
| tree | e9347deced2dff63820334d0dfb4c24b87e57bef /.scripts/audio | |
| parent | 748e9849856ec66374b0f1280a3137ae4f661b43 (diff) | |
| download | eibhear-bc9de2e26a1ce5e4033bd63c94f22b3bab11e808.tar.gz eibhear-bc9de2e26a1ce5e4033bd63c94f22b3bab11e808.tar.zst eibhear-bc9de2e26a1ce5e4033bd63c94f22b3bab11e808.zip | |
recording notification added, script fixes
Diffstat (limited to '.scripts/audio')
| -rwxr-xr-x | .scripts/audio | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/.scripts/audio b/.scripts/audio index cb630c8..6c5059e 100755 --- a/.scripts/audio +++ b/.scripts/audio @@ -5,11 +5,11 @@ # It also names files smartly to prevent overwrites. # Picks a file name for the output file based on availability: -while [[ -f $HOME/screencast$n.mkv ]] +while [[ -f $HOME/audio$n.flac ]] do n=$((n+1)) done -filename="$HOME/screencast$n.mkv" +filename="$HOME/audio$n.flac" # For Pulseaudio with ALSA: record_pulse() { \ @@ -24,4 +24,6 @@ ffmpeg -y \ -f alsa -ar 44100 -i hw:1 \ $filename ;} -if [[ $(pgrep -x pulseaudio) ]]; then record_pulse; else record_alsa; fi +if [[ $(pgrep -x pulseaudio) ]]; then record_pulse; else record_alsa; fi & +# Updating i3blocks recording icon: +echo 🎙️ > ~/.scripts/.recording && pkill -RTMIN+9 i3blocks |
