added scripts: prod.sh, tag.sh
This commit is contained in:
parent
0a181246e5
commit
ee81307555
@ -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
|
||||
|
7
src/.local/bin/deskutils/prod.sh
Executable file
7
src/.local/bin/deskutils/prod.sh
Executable 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
13
src/.local/bin/tag.sh
Executable 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
|
Loading…
Reference in New Issue
Block a user