Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Tony Crisci committed Sep 21, 2021
1 parent 5acfb41 commit f363f4e
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,21 @@ You can pass the `--follow` flag to query commands to block, wait for players to
playerctl metadata --format '{{ playerName }}: {{ artist }} - {{ title }} {{ duration(position) }}|{{ duration(mpris:length) }}' --follow
```

### Changing the position of the track

You can seek to a position in the track or skip forward and back.

```bash
# Go back 30 seconds
playerctl position 30-

# Go forward 30 seconds
playerctl position 30+

# Seek to the position at 30 seconds
playerctl position 30
```

## Troubleshooting

### Debug Logging
Expand All @@ -144,15 +159,16 @@ To enable debug logging, set the environment variable `G_MESSAGES_DEBUG=playerct

### No Players Found

If you are using Quod Libet as your music player you need to install/activate a plugin for it.
In Quod Libet open the window File -> Plugins and select the plugin called *MPRIS D-Bus Support*.

Some players like Spotify require certain DBus environment variables to be set which are normally set within the session manager. If you're not using a session manager or it does not set these variables automatically (like `xinit`), launch your desktop environment wrapped in a `dbus-launch` command. For example, in your `.xinitrc` file, use this to start your WM:

```
exec dbus-launch --autolaunch=$(cat /var/lib/dbus/machine-id) i3
```

Some players may require installation of a plugin or other configuration.

In Quod Libet open the window File -> Plugins and select the plugin called *MPRIS D-Bus Support*.

### Playerctld Autostart Issues

If `playerctld` does not autostart and you use `xinit` and systemd, you might need this fix to enable DBus activation to work correctly:
Expand Down Expand Up @@ -208,7 +224,7 @@ meson mesonbuild
sudo ninja -C mesonbuild install
```

Note that you need `meson >= 0.50.0` installed. In case your distro only has an older version of meson in its repository you can install the newest version via pip:
Note that you need `meson` installed. In case your distro only has an older version of meson in its repository you can install the newest version via pip:

```
pip3 install meson
Expand Down

0 comments on commit f363f4e

Please sign in to comment.