added scripts: prod.sh, tag.sh

This commit is contained in:
dogeystamp 2023-02-14 19:04:40 -05:00
parent 0a181246e5
commit ee81307555
Signed by: dogeystamp
GPG Key ID: 7225FE3592EFFA38
3 changed files with 23 additions and 0 deletions

View File

@ -5,6 +5,9 @@
if [ "$DUNST_APP_NAME" = "soundboard" ]; then
exit
fi
if [ "$DUNST_APP_NAME" = "prod" ]; then
exit
fi
if pactl list short sinks | grep -q virtual_mic; then
mpv ~/.local/bin/deskutils/notif.wav --audio-device=pulse/alsa_output.usb-C-Media_Electronics_Inc._USB_Audio_Device-00.analog-stereo

View File

@ -0,0 +1,7 @@
#!/bin/sh
# visual reminder of watson status
while true; do
notify-send -a "prod" -r 13371234 "$(watson status)"
sleep 5
done

13
src/.local/bin/tag.sh Executable file
View File

@ -0,0 +1,13 @@
#!/bin/sh
TMPFILE="$(mktemp)"
nvim "$TMPFILE"
cat "$TMPFILE" | while read line; do
link="$(echo $line | awk -F";" '{print $1}')"
artist="$(echo $line | awk -F";" '{print $2}')"
alb="$(echo $line | awk -F";" '{print $3}')"
file="$artist-$alb"
yt-dlp "$link" -x --audio-format mp3 --no-playlist -o "$file.%(ext)s"
mid3v2 -a "$artist" "$file"*
mid3v2 -A "$alb" "$file"*
mid3v2 -t "$alb" "$file"*
done