| Commit message (Collapse) | Author | Age |
|
|
|
|
|
|
|
| |
* Limit the title length in 'runes' (visible utf-8 chars) instead of
characters/bytes.
* Don't limit title length in tooltip, that's what tooltips are for
after all, to show more info.
* Remove unneeded variables
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Instead of customizing by indicating just the order and using flags for
other customization options (e.g. separator), read a C-like format
string with tokens/verbs that are replaced with their respective
information (e.g. `%a` for artist).
Also made it possible to customize the tooltip. The principle is the
same as with the module's text.
|
| |
|
| |
|
|
|
|
|
|
|
| |
Fixes bug where recipient instance would have a bit of the previous
track data on the end of the output if the previous track data was
longer, which effectively froze the output on waybar as it was no longer
valid JSON.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
emptyEveryWrite was returning the wrong number, so it ignores the real
value and just returns the expected value (len(bytes in)). For #4 again.
|
|
|
|
|
|
| |
io.MultiWriter (i think) thinks dataWrite.Write fails, and so doesn't
continue writing to all other outputs. This just makes it the last one,
should fix #4.
|
|
|
|
|
| |
if specified layout for nth instance is different than 1st, the player data is
shared instead of the waybar output.
|
|
|
|
|
|
|
| |
commands
fixed length commands were originally a guess for an issue I was having,
but it's cleaner this way anyway.
|
|
|
|
| |
also added more prominent download links to the readme.
|
| |
|
|
|
|
|
| |
not that this was a problem, but the output is simple enough to
just create it by hand.
|
|
|
|
| |
this way /tmp/waybar-mpris.out won't get filled up.
|
| |
|
| |
|
|
|
|
|
|
| |
fixes error caused by spotify returning a uint64 rather than int64 track
length. Also note spotify doesn't return a position so it is not
displayed.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
now at github.com/hrfee/mpris2client.
|
|
|
|
|
| |
also now ignores signals from it by storing its unique sender name on
startup and checking each signal.
|
|
|
|
| |
I'll likely put it in a different repo as i'm thinking of writing a last.fm scrobbler and it'd be reused there.
|
| |
|
|
|
|
| |
any non-json output at all seems to break waybar now, so this avoids it.
|
| |
|
|
|
|
|
|
| |
Fixes #1. When another instance is detected, a command is sent over the
socket for the original to write to stdout and to a temporary file, which is then
tailed by the new instance. Can be overridden with --replace.
|
|
|
|
|
|
| |
added --interpolate which will increment the track position if there
hasnt been a change after a second. Kinda buggy, so disabled by default.
Ampersands are escaped in the tooltip.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
automatically removes the socket after 5 seconds of no input so that its
functions headlessly.
|
|
|
|
| |
stops the tooltip from flickering.
|
| |
|
|
|
|
|
| |
responds with the current list of players and some info, to be used for debugging
purposes
|
| |
|
|
|
|
|
| |
with the --position flag, the position is grabbed every second and
outputted. Nothing else is refreshed.
|
| |
|
|
|
|
|
| |
playerctld displays and controls other players, so including it is
pointless.
|
|
|
|
| |
reads /proc/<pid>/cmdline directly instead of using a library.
|
|
|
|
| |
it made the comments look ugly.
|
| |
|
|
|
|
|
|
| |
waybar-mpris --send will send commands to a currently running
waybar-mpris instance. Players can be switched between and controlled
individually. Also added gifs, more stuff to README.
|