esenliyim / sp-tray Goto Github PK
View Code? Open in Web Editor NEWGnome extension to display spotify metadata
License: GNU General Public License v3.0
Gnome extension to display spotify metadata
License: GNU General Public License v3.0
Hi, great plugin.
One thing though, shouldn't it be artist
, not albumArtist
? https://github.com/esenliyim/sp-tray/blob/master/panelButton.js#L178
I get "Various artists" as artist on some tracks. Can artist
be empty? If so, albumArtist
can be a fallback value.
Artist field appears to be missing when playing a podcast.
If this isn't possible to fix, could also display track field only (with no | or spaces) when artist field is missing
Titles can get quite long. Would it be possible to set max length for track and artist fields?
This extension is great, but I'm missing one functionality. I'm talking about showing an album cover after click on tray or keyboard shortcut (better one).
Do you consider adding this feature?
Media Controls has it, but for me simplicity is important, therefore I chose this extension.
I can try to do a Pull Request if you accept the contributions here.
After updating to GNOME 42.0, this extension cannot be enabled in Extensions, and complains "The extension is incompatible with the current GNOME version".
Do you have plans to update this to be compatible with GNOME 42? I would really appreciate it.
Hi @esenliyim,
I wanted to report to you a small bug, that I could not pinpoint yet.
After opening Spotify, the current song, also being the one played on the last session is not displayed properly, even if I play/pause it.
The sole way to recover the information is by going to another song. At this point, it will never fail to display info anymore.
But if I close completly Spotify and open it again, the problem obisoulsy comes back.
A quick video to illustrate it: https://youtu.be/czs4Dfh1Zc8
I recently stumbled upon this extension while developing my own.
I wanted to make a pull request for this but i can't seem to be able to hook up my code to yours reliably.
Take a look at it.
the getPlayer
function returns a list of mpris compatible players (if you delete the [0]
in the return statement).
If you hook it up to your code somehow and do some extra stuff you might make your extension work in any mpris compatible player.
I didn't notice it until today but i'm basically making the same extension as you. i was fairly sure your extension was some derivation of mediaplayer.
I also noticed you changed your label format to the same i use. Did you see my pull request?
Anyway I hope you find this helpful.
Hello,
Could you make an option to have the same format when paused as when playing ?
Thanks a bunch !
Hi,
could you please add support for Gnome 44 used in Ubuntu 23.04?
Thank you!
Hi,
Thank you for this great extension.
Unfortunately, it looks like it's not working anymore since the last update.
I'm on Ubuntu 22.04 Gnome version 42.2
Let me know how I can provide you more information.
Best regards.
Hello.
I hovered cursor and took this screenshot:
You can see the panel button is bigger than text itself and it exceeds available space, so other panels are shorter than they should be (see four numbers on other screenshorts - they usually have percent and temperature signs).
Settings used:
These settings are that small simply for screenshots, of course. I should say that it does not try to claim all available space (I mean, not always at least) - for example, when I open non-maximized window, "close" and "minimize" buttons are hidden (they are from Unite extension btw), so it looks like this:
Also, this problem does not appear in marquee mode:
Even if I try to set absurdly high length limit, it does "smart limit" thing:
(Btw, high limit disables the marquee, so you can set it to claim all available space as needed, but without the problem above)
System information:
Hello!
I was wanting to change a few things (the text displayed when no song is playing) I did not find a config file listed in the readme, and so i was wondering if it would be something you had the abilaty to add or if it is a feature that im able to change easiely
The main reason is just that the orange button does not really fit that well with my other wigets
Thank you for your time, im looking forwards to hearing back from you.
Hey, I really love using this extension! But currently, it's outdated on Gnome version 41.1.
Could you please add support for it?
I am trying to modify the the inactive and paused text but the text box is limited at four characters, making it impossible to use {metadata}
It would be nice to have the option to disable automatic suspend when currently playing music.
Hey, I love your extension and its customizeability.
One thing I am missing is to show the {album} | {track} even if playback is stopped.
A toggle to enable showing during stopped could solve this too.
Otherwise, if i paste in {artist} | {album} | {track}, only {art is shown during stopped playback:
I'm running ncspot, a spotify client running inside a terminal window, since it's lightweight. It interacts with the overall system as any media player, i.e. I can use my general multimedia shortcuts and inbuilt gnome media controls to play/pause/next/etc.
When running the official spotify client I like running spotify-tray, but with ncspot it doesn't pick up on playing tracks.
Feature request: Make spotify-tray pick up on tracks running in ncspot.
github link to ncspot: https://github.com/hrkfdn/ncspot#readme
Great work with the extension, I like it!
I'd prefer to have the positioning of the tray on the left side of my menu bar. This is possible with Spotify Controller, which I use alongside this, but I can't get them both positioned on the left side.
I just wanted to update the extension through the GNOME extension website, but it resulted in an error.
The update yesterday worked without a problem, but the one today broke. Attempting to reinstall also results in an error.
I am running Ubuntu 21.10 with GNOME 40.4.0.
Hi there,
Thank you for upgrading to GNOME 45!
However, spotify-tray
version 23 fails to start (at least on my system) with the following error message:
GLib.FileError: Failed to open file “/home/dj/.local/share/gnome-shell/extensions/[email protected]/schemas/gschemas.compiled”: open() failed: No such file or directory
Which would be correct, the schemas
dir was empty locally. It appears that gschemas.compiled
and org.gnome.shell.extensions.sp-tray.gschema.xml
weren't included in the update.
Locally, this is fixable either:
~/.local/share/gnome-shell/extensions/[email protected]/schemas
org.gnome.shell.extensions.sp-tray.gschema.xml
to the schemas
folder and running glib-compile-schemas .
Here's a quick fix for others who may be having this issue:
wget -P ~/.local/share/gnome-shell/extensions/[email protected]/schemas https://github.com/esenliyim/sp-tray/blob/master/schemas/org.gnome.shell.extensions.sp-tray.gschema.xml
glib-compile-schemas ~/.local/share/gnome-shell/extensions/[email protected]/schemas
I have been trying to get this to work but it does not happen
Using Ubuntu 20.04 with gnome 3.38
Is this a spotify issue ? if yes then I will stop trying
Do reply
Hello
I am facing a strange issue with the extension in Gnome 42. Spotify is installed as a Snap.
If spotify is not running I see the following which is totally ok.
When I start spotify though the display completely disappears even if I play something...
It is showin normally though in gnome itself.
I tried disabling any other running extensions and also change the theme but this does not change anything.
Upon enabling this extension I noticed the moving text is stale, i.e. the marquee in the top pane. It shows the correct text, but it does not move. And yes, “display mode” is set to “marquee”.
I run Gnome 44.2, on Ubuntu 23.10, with X11.
Note that your code says it should be version 21, yet the installed extension reports version 22.
From journalctl I got
Spotify appeared on DBus.
ncspot vanished from DBus.
meta_window_set_stack_position_no_sync: assertion 'window->stack_position >= 0' failed
The last entry is probably something else, it pops up even if the extension isn't enabled.
I use the ordinary client from Spotify.
john@chimera:~$ spotify --version
Spotify version 1.2.11.916.geb595a67, Copyright (c) 2023, Spotify Ltd
This bug has been previously reported at Gnome Extensions
First, I want to appreciate this Gnome extension that has been created. If possible, I'd like to request a feature to scroll horizontally automatically when the artist name, song title, or album is truncated.
What I'm imagining is something like a marquee feature on an HTML tag like on the following page.
Thanks!
Hey ~
It would be nice be able to open the Spotify App instead of the extension settings when clicking on the tray.
Good stuff btw.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.