uhhh
This commit is contained in:
parent
b0b4067a00
commit
449438fbcb
9 changed files with 35 additions and 60 deletions
|
|
@ -1,12 +1,35 @@
|
|||
#!/usr/bin/env fish
|
||||
|
||||
set options " Clear Playlist" " Lock"
|
||||
function open_location
|
||||
set options " Documents" " Music" " Pictures" " Videos" " Downloads" "25_WiSe"
|
||||
set input (menu $options)
|
||||
|
||||
switch $input
|
||||
case $options[1]
|
||||
alacritty --working-directory (xdg-user-dir)/Documents/
|
||||
case $options[2]
|
||||
alacritty --working-directory (xdg-user-dir)/Music/
|
||||
case $options[3]
|
||||
alacritty --working-directory (xdg-user-dir)/Pictures/
|
||||
case $options[4]
|
||||
alacritty --working-directory (xdg-user-dir)/Videos/
|
||||
case $options[5]
|
||||
alacritty --working-directory (xdg-user-dir)/Downloads/
|
||||
case $options[6]
|
||||
alacritty --working-directory /home/never/Documents/InNa/25_WiSe/
|
||||
end
|
||||
end
|
||||
|
||||
set options " Open Location" " Clear Playlist" " Lock"
|
||||
set input (menu $options)
|
||||
|
||||
switch $input
|
||||
case $options[1]
|
||||
mpc clear
|
||||
case $options[1]
|
||||
open_location
|
||||
|
||||
case $options[2]
|
||||
exec swaylock
|
||||
case $options[2]
|
||||
mpc clear
|
||||
|
||||
case $options[3]
|
||||
exec swaylock
|
||||
end
|
||||
|
|
|
|||
|
|
@ -1,13 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
for file in *.opus; do
|
||||
ffmpeg \
|
||||
-hide_banner \
|
||||
-i "${file}" -i "cover.jpg" \
|
||||
-map_metadata 0:s:a:0 -disposition attached_pic \
|
||||
-metadata date="$1" \
|
||||
-c:a copy "0${file}"
|
||||
|
||||
rm "$file"
|
||||
mv "0${file}" "${file#"0"}"
|
||||
done
|
||||
|
|
@ -1,33 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
url=$1
|
||||
|
||||
album=$(yt-dlp -I 1:1 --skip-download --print "%(album)s" ${url})
|
||||
artist=$(yt-dlp -I 1:1 --skip-download --print "%(artists.0,artist)s" ${url})
|
||||
date=$(yt-dlp -I 1:1 --skip-download --print "%(release_date,upload_date)s" ${url})
|
||||
|
||||
folder="${artist} - ${album}"
|
||||
mkdir $folder
|
||||
|
||||
yt-dlp \
|
||||
--parse-metadata "playlist_index:%(track_number)s" \
|
||||
--parse-metadata "%(artists.0,artist)s:%(meta_artist)s" \
|
||||
--parse-metadata "${date}:%(meta_date)s" \
|
||||
--embed-metadata \
|
||||
--extract-audio --audio-format opus \
|
||||
-o "${folder}/%(playlist_index)s - %(title)s.%(ext)s" ${url}
|
||||
|
||||
yt-dlp -I 1:0 --write-thumbnail -o "${folder}/cover.jpg" ${url}
|
||||
|
||||
cd "${folder}"
|
||||
|
||||
for file in *.opus; do
|
||||
ffmpeg \
|
||||
-hide_banner \
|
||||
-i "${file}" -i "cover.jpg" \
|
||||
-map_metadata 0:s:a:0 -disposition attached_pic \
|
||||
-c:a copy "0${file}"
|
||||
|
||||
rm "$file"
|
||||
mv "0${file}" "${file#"0"}"
|
||||
done
|
||||
Loading…
Add table
Add a link
Reference in a new issue