diff options
| author | navewindre <boneyaard@gmail.com> | 2025-07-13 01:45:05 +0200 |
|---|---|---|
| committer | navewindre <boneyaard@gmail.com> | 2025-07-13 01:45:05 +0200 |
| commit | d49e4b0a25c7cc75ade210c7092eea8feb75e692 (patch) | |
| tree | 2a38c3846dee25d0d83c820de6bade62f54db90f /record.sh | |
| parent | 1fe841b80b6284737661870c87abbc26ecba4109 (diff) | |
restructure
Diffstat (limited to 'record.sh')
| -rwxr-xr-x | record.sh | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/record.sh b/record.sh deleted file mode 100755 index 2e8bc74..0000000 --- a/record.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/bash - -rm /tmp/desktop_audio_temp.mp3 - -cleanup() { - echo "Recording stopped. Cleaning up..." - kill $FFMPEG_PID - echo "file:///tmp/desktop_audio_temp.mp3" | xclip -sel c - gxmessage -geometry 350x50 -title "audio recorded" -center "desktop dudio has been copied to your clipboard." - exit 0 -} - -trap cleanup SIGINT SIGTERM - -ffmpeg -f pulse -i alsa_output.usb-FX-AUDIO-_DAC-X3PRO_20313330544D4319001C8004-00.analog-stereo.monitor /tmp/desktop_audio_temp.mp3 & - -FFMPEG_PID=$! -xev | grep -q "keycode: 9" && cleanup - -wait $FFMPEG_PID |
