Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env bash
- # deps: sacad feh fancy_audio [rubygem]
- # opt deps: optipng jpegoptim
- clipb=$(xclip -selection clipboard -o | cut -d\& -f1)
- #prev=$(~/scripts/mclip.py menu | head -n 1 | cut -c4-)
- tput setaf 5
- read -p "enter name of artist album art: " artist
- tput setaf 1
- read -p "enter name of the album requiring art: " album
- tput setaf 6
- ~/venv/bin/sacad -v normal "${artist}" "${album}" 150 ~/"${album}.jpg"
- tput setaf 3
- read -p "View Downloaded Album Art $fehview? [y/n] " answer
- if [[ $answer = y ]] ; then
- tput setaf 4
- tput bold
- tput smso
- printf ': hit q or enter to continue ➤ '
- tput rmso
- tput sgr0
- echo ''
- fehview=$(feh -g 150x150+1280+260 -A 'pkill feh' ~/"${album}.jpg" )
- fi
- tput setaf 2
- read -p "enter path of .mp3 file to embed art: " embed
- fancy_audio "${embed}" ~/"${album}.jpg"
- tput setaf 3
- echo -n " sorted brudda ! "${album}.jpg" now embedded into "${embed}" "
- echo ''
- tput setaf 6
- read -p "Delete Downloaded Album Art $artdel? [y/n] " answer
- if [[ $answer = y ]] ; then
- artdel=$(rm ~/"${album}.jpg" )
- tput setaf 4
- echo "Mission Accomplished !! "
- tput sgr0
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement