aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xget_recordings11
-rwxr-xr-xnotepicker6
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
diff --git a/notepicker b/notepicker
index 51e9562..f9edeb8 100755
--- a/notepicker
+++ b/notepicker
@@ -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
}