aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarvey Tindall <hrfee@protonmail.ch>2020-08-26 22:19:20 +0100
committerHarvey Tindall <hrfee@protonmail.ch>2020-08-26 22:19:20 +0100
commitf9b38e5d1ddb10dc0316ac35b097adfe1da59d8d (patch)
treefc6928dcc465d8fad0d4694c43898cbc895e96a3
parent8177e5dec9a272c607be90fb1bf02f7f0eb0b64e (diff)
downloadwaybar-mpris-f9b38e5d1ddb10dc0316ac35b097adfe1da59d8d.tar.gz
waybar-mpris-f9b38e5d1ddb10dc0316ac35b097adfe1da59d8d.zip
add position arg to readme
-rw-r--r--README.md8
1 files changed, 5 insertions, 3 deletions
diff --git a/README.md b/README.md
index d2ff7dd..3f8dba8 100644
--- a/README.md
+++ b/README.md
@@ -24,7 +24,7 @@ When running, the program will pipe out json in waybar's format. Add something l
```
"custom/waybar-mpris": {
"return-type": "json",
- "exec": "waybar-mpris",
+ "exec": "waybar-mpris --position --autofocus",
"on-click": "waybar-mpris --send toggle",
// This option will switch between players on right click.
"on-click-right": "waybar-mpris --send player-next",
@@ -42,17 +42,19 @@ 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.
- --order string Element order. (default "SYMBOL:ARTIST:ALBUM:TITLE")
+ --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)
--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 " - ")
```
-* Modify the order of components with `--order`. `SYMBOL` is the play/paused icon or text, other options are self explanatory.
+* Modify the order of components with `--order`. `SYMBOL` is the play/paused icon or text, `POSITION` is the track position (if enabled), other options are self explanatory.
* `--play/--pause` specify the symbols or text to display when music is paused/playing respectively.
* `--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.
* `--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.