mcthomas / Apple-Music-CLI-Player

A simple command-line Apple Music controller script which includes a "Now Playing" widget function, a playback function, and a list-out function for your Mac's Music.app library, written in sh.
MIT License
114 stars 10 forks source link

Option to disable album art? #2

Closed sxdjt closed 1 year ago

sxdjt commented 1 year ago

First off, thank you for this! Nice to be able to have a CLI interface without the Music app in your face.

Is there a way to completely disable album art display? I would like to have the np output by itself and not have a big black square on the left side of the output.

mcthomas commented 1 year ago

That's a good idea, I hadn't accommodated this. I will push a new flag tomorrow (later today) to start np without album art.

sxdjt commented 1 year ago

Cool, thank you! I tried doing it myself and just ended up breaking things miserably.

sxdjt commented 1 year ago

An option to disable the icons would be nice as well, while you have the lid off?

mcthomas commented 1 year ago

I just pushed an update to hide the album art behind the -t flag. I don't see the value in disabling the emojis, since this new flag already operates as a text only mode. I think I am going to leave it at that for now. That being said, after you pull down, you are welcome to just replace line #93 with the following to remove the icons when you call am np -t:

paste <(printf '%s\n' "$name" "$artist - $record" "$(echo $currMin:$currSec ${cyan}${prog}${nocolor}${progBG} $endMin:$endSec)" "$(echo "${magenta}$vol${nocolor}$volBG")")
sxdjt commented 1 year ago

Nice! Thank you!

mcthomas commented 1 year ago

@sxdjt by the way, did you see the dependency listing for viu on the readme? I just wanted to make sure you knew that you would have proper album art in place of that whitespace if you have that package installed.

sxdjt commented 1 year ago

@mcthomas - I did see the dependency and tried it. Took a bit of fiddling to get it sorted, but in the end wasn't a feature that I would use. Thank you for the follow up!