aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorHarvey Tindall <hrfee@protonmail.ch>2020-09-28 23:48:51 +0100
committerHarvey Tindall <hrfee@protonmail.ch>2020-09-28 23:48:51 +0100
commit78ce37db9f13c5439b30663a3c54b283bd3f539c (patch)
tree7bdde426eb8a14d7456f4dfd3a2fefdc84e642f9 /README.md
parentb97a9505828d4fe030851f76f4a0bd0fcc7ee76d (diff)
downloadwaybar-mpris-78ce37db9f13c5439b30663a3c54b283bd3f539c.tar.gz
waybar-mpris-78ce37db9f13c5439b30663a3c54b283bd3f539c.zip
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.
Diffstat (limited to 'README.md')
-rw-r--r--README.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/README.md b/README.md
index 72aa808..8258968 100644
--- a/README.md
+++ b/README.md
@@ -42,10 +42,12 @@ When running, the program will pipe out json in waybar's format. Add something l
```
Usage of waybar-mpris:
--autofocus Auto switch to currently playing music players.
+ --interpolate Interpolate track position (helpful for players that don't update regularly, e.g mpDris2)
--order string Element order. (default "SYMBOL:ARTIST:ALBUM:TITLE:POSITION")
--pause string Pause symbol/text to use. (default "\uf8e3")
--play string Play symbol/text to use. (default "▶")
--position Show current position between brackets, e.g (04:50/05:00)
+ --replace Replace any running instances
--send string send command to already runnning waybar-mpris instance. (options: player-next/player-prev/next/prev/toggle)
--separator string Separator string to use between artist, album, and title. (default " - ")
```
@@ -55,6 +57,8 @@ Usage of waybar-mpris:
* `--separator` specifies a string to separate the artist, album and title text.
* `--autofocus` makes waybar-mpris automatically focus on currently playing music players.
* `--position` enables the display of the track position.
+* `--interpolate` increments the track position every second. This is useful for players (e.g mpDris2) that don't regularly update the position.
+* `--replace`: By default, new instances will attach to the existing one so that the output is identical. This lets this instance replace any others running. It isn't recommended.
* `--send` sends commands to an already running waybar-mpris instance via a unix socket. Commands:
* `player-next`: Switch to displaying and controlling next available player.
* `player-prev`: Same as `player-next`, but for the previous player.