Age | Commit message (Collapse) | Author |
|
|
|
This commit adds displaying player metadata in a popup when the user
hovers over the mpris-widget
|
|
this code is janky, because the notification is set asynchronously, it
can end up not being cleaned by the mouse exit and then you can end up
with multiple ones. Also, the image field of the table needs to be icon,
but if the icon is an http url like some players print or even a local
file like firefox does, setting the icon causes an error as it can't be
read.
|
|
Perhaps due to the regex change, or maybe it never did work, art was always
nil. Use gears.string.split(), which works, is much easier to read than the
regex and removes the need to munge the artUrl after too.
|
|
The middle part of mpris_widget was meant to be a play/pause icon. It
only displayed a circle, as an unrelated widget that was not shown was
set up and modified according to the play state. Delete the invisible
widget, add the icon where it should be.
|
|
use the right widget and it just works(TM). Changed the title to not
have bold formatting, as it's already formatted and the <b> was printed
literally, changed the <b>by</b> to - as it looks nicer to me.
|
|
no need to update a widget that is never updated
|
|
|
|
there is no naughty.notification, notify returns a notification
|
|
Do it outside the loop, otherwise the last player wins.
|
|
the loop is not meant to be executed if the player name is nil or '', so
the expression needs to be an and.
|
|
the mpdarc widget is not really used and is a copy-paste leftover. The
current widget has its own bindings already.
|
|
Before, the table ended up being something like {"status", "",
"artist", "", ..}, so the output of the widget was garbled.
|
|
.set_text is invalid, it should be :set_text like in the other branches
of the if.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|