diff options
| author | joott <joshott16@gmail.com> | 2026-01-09 10:52:02 -0500 |
|---|---|---|
| committer | joott <joshott16@gmail.com> | 2026-01-09 10:52:02 -0500 |
| commit | 175a2bdafc838a403d6dc138235f42af3be014ce (patch) | |
| tree | eba26005422621c269dee122054de63b69f5a977 | |
| parent | 6bda2d2a64d0a934bc324788c81768ce99338617 (diff) | |
| download | bin-175a2bdafc838a403d6dc138235f42af3be014ce.tar.gz bin-175a2bdafc838a403d6dc138235f42af3be014ce.zip | |
recordings
| -rwxr-xr-x | get_recordings | 11 | ||||
| -rwxr-xr-x | notepicker | 6 |
2 files changed, 14 insertions, 3 deletions
diff --git a/get_recordings b/get_recordings new file mode 100755 index 0000000..23dfdba --- /dev/null +++ b/get_recordings @@ -0,0 +1,11 @@ +convert_audio () { + target_dir=$HOME/Documents/recordings + filename="$(date -r $1 +%F_%T.mp3 | tr ':' '-')" + ffmpeg -i $1 $target_dir/$filename + rip $1 +} +export -f convert_audio + +sudo mount -o uid=1000,gid=1000 /media/rec +find /media/rec -name \*.WMA -exec bash -c 'convert_audio "{}"' \; +sudo umount /media/rec @@ -7,7 +7,7 @@ NOTEDIR=$1 SUFFIX='' opennote () { - kitty --directory $NOTEDIR$SUFFIX nvim $notefile + kitty --directory $NOTEDIR$SUFFIX nvim "$notefile" } journal () { @@ -28,8 +28,8 @@ pick () { case $choice in Journal) journal ;; - *.md) notefile=$choice; opennote ;; - *!) notefile=$(echo $choice | tr -d '!').md; opennote ;; + *.md) notefile="$choice"; opennote ;; + *!) notefile="$(echo $choice | tr -d '!').md"; opennote ;; *) exit 0 ;; esac } |