Closed jkdufair closed 5 years ago
Sounds like a nice addition, although not for me personally since I use emacs either in the terminal, or in a tiling window manager (in which the window doesn't have a title bar like in other desktop environments such as GNOME or KDE).
Ok, I'll go ahead and branch off of your async branch and then sync when that's pushed to master. Thanks for the consideration!
@jkdufair if it helps, what I have in the modeline:
(setq spotify-mode-line-playing-text ">")
(setq spotify-mode-line-paused-text "|")
(setq spotify-mode-line-stopped-text ".")
(setq spotify-mode-line-format "[%p %a: %t|%r%s]")
It looks pretty short. When splitting into two windows vertically it does get quite busy. I'm using mood-line though, which is relatively compact, so it's not that bad.
To change the frame title you can use frame-title-format
. I use a tiling WM at home like Daniel does, but for Windows I find it useful to have the buffer name, I have this in my init: (setq frame-title-format "%b - Emacs")
.
It seems spotify-update-mode-line
is the best place to read the final mode-line string already formatted, since how it's constructed depends on the transport used.
@danielfm Just a thought - With regards to the transport status (mode line stuff) - It might be nice to have the option to put it in the title bar if you're running in GUI mode. It uses a fair bit of space in the modeline, even if you make it as compact as possible. And with multiple windows, it really can clutter things up. Let me know if you'd consider a PR for this. Thank you!