Skip to content

Commit

Permalink
Updated the README with info command details
Browse files Browse the repository at this point in the history
  • Loading branch information
mariusor committed Mar 31, 2017
1 parent fee6090 commit b98d429
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,31 @@ bindsym XF86AudioStop exec "mpris-ctl stop"
bindsym XF86AudioNext exec "mpris-ctl next"
bindsym XF86AudioPrev exec "mpris-ctl prev"
````

Supported format specifiers for `mpris-ctl info` command:

```
Format specifiers:
%track_name prints the track name
%track_number prints the track number
%track_length prints the track length (seconds)
%artist_name prints the artist name
%album_name prints the album name
%album_artist prints the album artist
%play_status prints the playback status
%shuffle prints the shuffle mode
%volume prints the volume
%loop_status prints the loop status
%position prints the song position (seconds)
%bitrate prints the track's bitrate
```

Example:

```
$ mpris-ctl info "%track_name"
Song 42
$ mpris-ctl info
Song 42 - Bloor - The Best of Bloor
```

0 comments on commit b98d429

Please sign in to comment.