Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to output Song title, artist, album etc of now playing to polybar #108

Open
TrontheTechie opened this issue Feb 26, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@TrontheTechie
Copy link

Thank you for the continued work on this project, It has been invaluable to me as a linux user whose S.O. is in love with apple music. Would you be open to adding in the ability to output this information to a module with functionality like MPD on people's polybar/ i3bar setups?

Thank you, regardless, for all the hard work!

@zachomedia zachomedia added the enhancement New feature or request label Feb 28, 2020
@zachomedia
Copy link
Owner

@TrontheTechie I'm not 100% clear on what would be needed for that. Do you have any more information about this type of setup?

@TrontheTechie
Copy link
Author

TrontheTechie commented Feb 29, 2020

Thank you for your time;

The way that I have thought it could work is by having a setting that if toggled would allow the web client to write a file to disk in the home directory somewhere or tmp folder named applemusicnowplaying that contains the currently playing song information (as specified in settings if desired for more complexity).

Someone could then create a small module in their polybar configuration that queries if the file is there, and if so to output it's contents onto the status bar similar to this kind of setup

An example of the module:

[module/applemusic]
type = custom/script
exec = test -e /tmp/applemusicnowplaying && cat /tmp/applemusicnowplaying
interval = 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants