Commit Graph

38 Commits

Author SHA1 Message Date
c235dd60dd
overwrite previous content when sharing output
this way /tmp/waybar-mpris.out won't get filled up.
2021-04-24 16:02:39 +01:00
16465c44a2
add license.
All checks were successful
continuous-integration/drone/push Build is passing
2021-02-13 22:28:30 +00:00
7a55b6d605
add message on issues
All checks were successful
continuous-integration/drone/push Build is passing
2021-02-06 00:53:04 +00:00
40f813ddc3
Use fixes for spotify
All checks were successful
continuous-integration/drone/push Build is passing
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.
2021-01-17 12:25:27 +00:00
7a3b3d5216
update readme, mention AUR package
All checks were successful
continuous-integration/drone/push Build is passing
2021-01-16 17:03:48 +00:00
750317a0d7
url
All checks were successful
continuous-integration/drone/push Build is passing
2021-01-15 22:21:33 +00:00
648f56f1d0
apt update agh
Some checks failed
continuous-integration/drone/push Build is failing
2021-01-15 22:20:08 +00:00
2c3c989480
oops, forgot to add python
Some checks failed
continuous-integration/drone/push Build is failing
2021-01-15 22:18:53 +00:00
bda0879199
add drone/buildrone
Some checks failed
continuous-integration/drone/push Build is failing
2021-01-15 22:15:45 +00:00
937769e2f7
use external mpris2client lib
now at github.com/hrfee/mpris2client.
2021-01-08 00:54:34 +00:00
233b5dd1ca
improve ignoring of playerctld
also now ignores signals from it by storing its unique sender name on
startup and checking each signal.
2021-01-07 17:59:02 +00:00
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.
2021-01-07 16:10:20 +00:00
af0af02059
add some comments and change identifier names 2020-12-15 20:44:03 +00:00
9b02fc2851
print clone message to stderr
any non-json output at all seems to break waybar now, so this avoids it.
2020-11-26 19:11:38 +00:00
a84ae6bd5b
fix help output 2020-11-16 21:59:31 +00:00
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.
2020-09-28 23:48:51 +01:00
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.
2020-09-14 16:14:30 +01:00
018e3ce34e
fix crash when tracklength not available 2020-09-11 21:24:11 +01:00
8343e713fe
remove socket on exit; fix --position crash 2020-09-06 13:13:36 +01:00
6ed1eb428f
log to /tmp/waybar-mpris.log 2020-08-31 20:37:23 +01:00
f4090c1f07
ask before removing existing socket
automatically removes the socket after 5 seconds of no input so that its
functions headlessly.
2020-08-31 20:14:14 +01:00
3918d2f30e
ignore player-next/prev if only one player avavilable
stops the tooltip from flickering.
2020-08-28 21:57:54 +01:00
8fb822aa91
reflect new location 2020-08-27 23:15:16 +01:00
315b3df656
add list command for debug
responds with the current list of players and some info, to be used for debugging
purposes
2020-08-27 20:26:01 +01:00
f9b38e5d1d
add position arg to readme 2020-08-26 22:19:20 +01:00
8177e5dec9
optionally display track position
with the --position flag, the position is grabbed every second and
outputted. Nothing else is refreshed.
2020-08-26 22:10:36 +01:00
08ebaa5525
shrink binary 2020-08-25 14:51:32 +01:00
25f40dc9e0
ignore playerctld
playerctld displays and controls other players, so including it is
pointless.
2020-08-25 14:40:56 +01:00
623adf487e
display browser name in tooltip
reads /proc/<pid>/cmdline directly instead of using a library.
2020-08-23 16:25:27 +01:00
840130680e
get rid of json annotation
it made the comments look ugly.
2020-08-22 19:17:48 +01:00
a0636d7390
center gif 2020-08-22 19:03:36 +01:00
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.
2020-08-22 19:01:51 +01:00
b49765a848
mention go get 2020-08-22 15:43:18 +01:00
07096ae6ba
remove main 2020-08-22 15:41:41 +01:00
54dcac02e6
Add flags, executable and improve README.md 2020-08-22 15:40:24 +01:00
5020e1c929
fix halt when player is removed
rewritten without goroutines or checking if processes exist and it seems
to work much better now.
2020-08-22 14:39:23 +01:00
3cf3f910ca
add players as detected, switch to currently playing player on state
change.
2020-08-21 15:44:59 +01:00
461d87b8c9
first 2020-08-21 14:54:32 +01:00