Harvey Tindall
485ec0ec0a
escape double quotes
continuous-integration/drone/push Build is passing
Details
1 year ago
Harvey Tindall
39f84a94ac
write connection refused error to stderr
continuous-integration/drone/push Build is passing
Details
1 year ago
Harvey Tindall
4b71fa248a
Truncate file when directly sharing
...
continuous-integration/drone/push Build is passing
Details
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.
2 years ago
Harvey Tindall
c26c13e984
upload to buildrone before apt
continuous-integration/drone/push Build is passing
Details
2 years ago
Harvey Tindall
174d243f15
fix apt versioning
continuous-integration/drone/push Build is failing
Details
2 years ago
Harvey Tindall
6cab493189
mention repo in README
continuous-integration/drone/push Build is passing
Details
2 years ago
Harvey Tindall
69be0dcf8a
fix typo
continuous-integration/drone/push Build is passing
Details
2 years ago
Harvey Tindall
22ad0e29cb
make debs/rpms, upload .debs to repo
continuous-integration/drone/push Build is failing
Details
2 years ago
Harvey Tindall
8340ef1f20
always return the expected number of bytes written
...
continuous-integration/drone/push Build is passing
Details
emptyEveryWrite was returning the wrong number, so it ignores the real
value and just returns the expected value (len(bytes in)). For #4 again.
2 years ago
Harvey Tindall
fe851278f4
change order of writers in io.Multiwriter
...
continuous-integration/drone/push Build is passing
Details
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 .
2 years ago
Harvey Tindall
49b3212c48
support multiple instances with different layouts
...
continuous-integration/drone/push Build is passing
Details
if specified layout for nth instance is different than 1st, the player data is
shared instead of the waybar output.
2 years ago
Harvey Tindall
ea4f47a1b1
only share output when args are identical; use fixed length socket
...
commands
fixed length commands were originally a guess for an issue I was having,
but it's cleaner this way anyway.
2 years ago
Harvey Tindall
51c7a983a0
add PLAYER to --order, remove binary from repo
...
continuous-integration/drone/push Build is passing
Details
also added more prominent download links to the readme.
2 years ago
Harvey Tindall
3aec82c40c
fix upload.py args for new version
continuous-integration/drone/push Build is passing
Details
2 years ago
Harvey Tindall
a2164b0173
build JSON string instead of json.Marshal-ing
...
continuous-integration/drone/push Build is failing
Details
not that this was a problem, but the output is simple enough to
just create it by hand.
2 years ago
Harvey Tindall
c235dd60dd
overwrite previous content when sharing output
...
this way /tmp/waybar-mpris.out won't get filled up.
2 years ago
Harvey Tindall
16465c44a2
add license.
continuous-integration/drone/push Build is passing
Details
2 years ago
Harvey Tindall
7a55b6d605
add message on issues
continuous-integration/drone/push Build is passing
Details
2 years ago
Harvey Tindall
40f813ddc3
Use fixes for spotify
...
continuous-integration/drone/push Build is passing
Details
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.
2 years ago
Harvey Tindall
7a3b3d5216
update readme, mention AUR package
continuous-integration/drone/push Build is passing
Details
2 years ago
Harvey Tindall
750317a0d7
url
continuous-integration/drone/push Build is passing
Details
2 years ago
Harvey Tindall
648f56f1d0
apt update agh
continuous-integration/drone/push Build is failing
Details
2 years ago
Harvey Tindall
2c3c989480
oops, forgot to add python
continuous-integration/drone/push Build is failing
Details
2 years ago
Harvey Tindall
bda0879199
add drone/buildrone
continuous-integration/drone/push Build is failing
Details
2 years ago
Harvey Tindall
937769e2f7
use external mpris2client lib
...
now at github.com/hrfee/mpris2client.
2 years ago
Harvey Tindall
233b5dd1ca
improve ignoring of playerctld
...
also now ignores signals from it by storing its unique sender name on
startup and checking each signal.
2 years ago
Harvey Tindall
bcd2a83dd9
move mpris2 component to separate module
...
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.
2 years ago
Harvey Tindall
af0af02059
add some comments and change identifier names
2 years ago
Harvey Tindall
9b02fc2851
print clone message to stderr
...
any non-json output at all seems to break waybar now, so this avoids it.
3 years ago
Harvey Tindall
a84ae6bd5b
fix help output
3 years ago
Harvey Tindall
78ce37db9f
Run multiple instances by attaching to original
...
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.
3 years ago
Harvey Tindall
b97a950582
add optional position interpolation, escape ampersands
...
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.
3 years ago
Harvey Tindall
018e3ce34e
fix crash when tracklength not available
3 years ago
Harvey Tindall
8343e713fe
remove socket on exit; fix --position crash
3 years ago
Harvey Tindall
6ed1eb428f
log to /tmp/waybar-mpris.log
3 years ago
Harvey Tindall
f4090c1f07
ask before removing existing socket
...
automatically removes the socket after 5 seconds of no input so that its
functions headlessly.
3 years ago
Harvey Tindall
3918d2f30e
ignore player-next/prev if only one player avavilable
...
stops the tooltip from flickering.
3 years ago
Harvey Tindall
8fb822aa91
reflect new location
3 years ago
Harvey Tindall
315b3df656
add list command for debug
...
responds with the current list of players and some info, to be used for debugging
purposes
3 years ago
Harvey Tindall
f9b38e5d1d
add position arg to readme
3 years ago
Harvey Tindall
8177e5dec9
optionally display track position
...
with the --position flag, the position is grabbed every second and
outputted. Nothing else is refreshed.
3 years ago
Harvey Tindall
08ebaa5525
shrink binary
3 years ago
Harvey Tindall
25f40dc9e0
ignore playerctld
...
playerctld displays and controls other players, so including it is
pointless.
3 years ago
Harvey Tindall
623adf487e
display browser name in tooltip
...
reads /proc/<pid>/cmdline directly instead of using a library.
3 years ago
Harvey Tindall
840130680e
get rid of json annotation
...
it made the comments look ugly.
3 years ago
Harvey Tindall
a0636d7390
center gif
3 years ago
Harvey Tindall
74015e43a3
remote control via unix sockets
...
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.
3 years ago
Harvey Tindall
b49765a848
mention go get
3 years ago
Harvey Tindall
07096ae6ba
remove main
3 years ago
Harvey Tindall
54dcac02e6
Add flags, executable and improve README.md
3 years ago