MPDRIS2(1)

πŸ’– MPDRIS2 β€” the manual, but make it make sense πŸ’–

okay bestie, so this is the mpDris2 man page, section 1, and it's genuinely iconic. it lives in the D-Bus services corner of the manual world. let's get into it 🫢


✨ NAME ✨

mpDris2 β€” the media player interface (MPRIS2) bridge for MPD πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

that's it. that's the whole vibe. options only, no drama.


🌸 DESCRIPTION 🌸

so mpDris2 is an implementation of the MPRIS2 media player interface, but as a client for MPD. which means β€” and this is the slay part β€” MPRIS2 clients can control MPD and watch its track changes through a standard D-Bus interface. it's giving translator, it's giving middle girlie, it's giving bridge. πŸŒ‰

it can also respond to multimedia keys if it's running under GNOME, and it'll send track-change notifications if python-notify is installed. not me being multi-talented 😭✨

normally you don't even run it by hand β€” it gets run automatically via D-Bus service activation. and on systems that follow the freedesktop.org Desktop Application Autostart Specification</>, it'll be run automatically on login. main character energy, but like, the responsible kind. πŸ‘‘


πŸ¦‹ CONFIGURATION πŸ¦‹

so mpDris2 is normally configured through this file:

which, typically, is:

what goes inside that file is documented over in:

and here's the hierarchy bestie, listen up: settings in this config file can be overridden by command-line options and environment variables. so the config file is like the base layer, and the other two can just. barge in. respectfully. πŸ’


πŸ’… OPTIONS πŸ’…

  • -p PATH, --path=PATH β€” sets the location of the directory that mpd reads music from, and yes it overrides the config file. the default? it uses the path from the config file, or else it tries some likely directories: XDG_MUSIC_DIR from the environment, or XDG_CONFIG_DIRS/user-dirs.dirs, or ~/Music, or ~/music. she's guessing but she's guessing strategically πŸ“
  • -h, --help β€” shows a help message. classic. iconic. always there for you 🫢
  • -d, --debug β€” emits debug logging messages. turn this on when you want the tea β˜•πŸ‘€

🌈 ENVIRONMENT 🌈

  • XDG_CONFIG_HOME=DIRECTORY, XDG_CONFIG_DIRS=SEARCHPATH β€” used to find the configuration file XDG_CONFIG_DIRS/mpDris2/mpDris2.conf, following the XDG Base Directory Specification. yeah. spec-compliant. we love a girlie who follows the rules πŸ“‹βœ¨
  • MPD_HOST=HOSTNAME β€” sets the hostname of the mpd server, overriding the configuration file. πŸ‘‘
  • MPD_PORT=PORT β€” sets the port number of the mpd server, overriding the configuration file. πŸ”Œ
  • XDG_MUSIC_DIR=DIRECTORY β€” used to find the default music directory, but only if it's not specified in the configuration file or as a command-line option. backup plan energy, we stan 🎧

πŸ”₯ SEE ALSO πŸ”₯


lowkey important reminder: the config file is the base, but command-line options and environment variables override it. don't come for me when your MPD_HOST wins over your conf file β€” that's the whole point bestie πŸ’–

and that's the whole page!! ngl she's short but she's efficient. this was written up in September 2012, and it comes to you from the D-Bus services part of the manual β€” so go forth, bridge those players, and stay slay βœ¨πŸŽ€πŸ’œ

πŸ“¦ where this page comes from