MPD-SIMA(1)

πŸŽ€ MPD-SIMA πŸŽ€

hiii bestie πŸ’– so this is the manual page for mpd-sima β€” aka MPD_sima β€” the little icon that keeps your MPD queue from going dry. she's giving main character energy, and she's here to explain herself.


✨ NAME ✨

mpd-sima β€” bestie will try to maintain some titles ahead in the queue following different policies. that's literally her whole job and she ate. πŸ‘‘


🌸 SYNOPSYS 🌸

mpd-sima [--daemon] [--config=conf_file] [--var-dir=var_directory]
[--pid=pid_file] [--log=log_file] [--log-level=log_level]
[--host=mpd_host] [--mpd_port=mpd_port]

mpd-sima {{-h | --help} --version}

mpd-sima [--config=conf_file] config-test

mpd-sima [--var-dir=var_directory] create-db

mpd-sima […] generate-config

mpd-sima [--var-dir=var_directory] purge-history

mpd-sima bl-view

mpd-sima bl-add-artist [artist]

mpd-sima bl-add-album [album]

mpd-sima bl-add-track [track]

mpd-sima bl-delete id

mpd-sima random [nbtracks]

πŸ¦‹ DESCRIPTION πŸ¦‹

this page documents briefly the mpd-sima commands. yes, briefly β€” she's a busy girl.

At start up, the default configuration is first overridden by the user configuration in mpd_sima.cfg (see FILES), and finally the command line options are honored. so like, layered lewks. for instance you can override the default MPD host (localhost) in your configuration file or with the -S my_mpd_server.local option. For the default configuration, see CONFIGURATION. And for the special-case environment variables for MPD host and port, see ENVIRONMENT. iykyk. πŸ’…


πŸ’– OPTIONS πŸ’–

The program follows the usual GNU command line syntax, with long options starting with two dashes (-). A summary of options is included below. slay.

  • -h; --help β€” Print help and exit. she's helpful like that 🫢
  • --version β€” Print version and exit.
  • --daemon β€” Start as a daemon. Log redirected to /dev/null. usually setting the --log and --pid options in daemon mode is a good idea so you can monitor/stop the process. fr fr, don't leave her unsupervised.
  • -p pid_file; --pid=pid_file β€” Use the specific file pid_file to store pid to.
    • Default is not to store pid info. πŸ˜Άβ€πŸŒ«οΈ
  • -l log_file; --log=log_file β€” Use the specific file log_file to log messages to.
    • Default is to log to stdout/stderr.
  • -v log_level; --log-level=log_level β€” Verbosity in [debug,info,warning,error].
    • Default is to log info messages.
  • -c conf_file; --config=conf_file β€” Use the specific file conf_file to set up configuration instead of looking for the default user configuration file.
    • Default is to look for ${XDG_CONFIG_HOME}/mpd_sima/mpd_sima.cfg. CLI option overrides any equivalent mentioned in the configuration file β€” ie. launching mpd-sima with the --port CLI option will ignore the port setting in the configuration file.
    • For more details on the configuration file see also the FILES and CONFIGURATION sections.
  • --var-dir=var_directory β€” Use the specific path var_directory to look for (or create) var files (ie. database) instead of looking at the default user data location.
    • Default is to look in ${XDG_DATA_HOME}/mpd_sima/. Concerning XDG_DATA_HOME see also the FILES section.
  • -S mpd_host; --host=mpd_host β€” Use the specific host mpd_host as MPD server. mpd_host can be an IP or a fully qualified domain name as long as your system can resolve it. This overrides the MPD_HOST environment variable. Default is localhost.
    • See also the ENVIRONMENT section.
  • -P mpd_port; --port=mpd_port β€” Use the specific port number mpd_port on MPD server. This overrides the MPD_PORT environment variable. Default is 6600.
    • See also the ENVIRONMENT section.

πŸ‘‘ COMMAND ARGUMENTS πŸ‘‘

  • config-test β€” Test configuration file and exit. Uses the configuration file specified with --config or the default location. Default is to use $XDG_CONFIG_HOME/mpd_sima/mpd_sima.cfg.
    • config-test tests MPD connection and Tags plugin configuration. vibe check, basically βœ…
  • create-db β€” Create the database and exit. Uses the folder specified with --var-dir or the default directory.
    • Default is to use ${XDG_DATA_HOME}/mpd_sima/ (see the CONFIGURATION section for more).
  • generate-config β€” Generate a sample configuration file according to the current CLI options and environment variables. The configuration is written on stdout. πŸ’Œ
  • purge-history β€” Purge play history in the database and exit. Uses the folder specified with --var-dir or the default directory.
    • Default is to use ${XDG_DATA_HOME}/mpd_sima/ (see the FILES section for more).
  • bl-view β€” View blocklist, useful to get entry IDs to remove with the delete command. peak utility πŸ”₯
  • bl-add-artist artist β€” Add artist to the blocklist. If artist is not provided, try to get the currently playing artist.
  • bl-add-album album β€” Add album to the blocklist. If album is not provided, try to get the currently playing album.
  • bl-add-track track β€” Add track to the blocklist. If track is not provided, try to get the currently playing track.
  • bl-delete id β€” Remove the blocklist entry referenced by its id. Use the blocklist view command to get the id.
  • random [nbtracks] β€” Starts in random mode, overriding internal plugin configuration. If nbtracks is provided, as many tracks will be queued (defaults to one).

🌈 ENVIRONMENT 🌈

  • MPD_HOST, MPD_PORT β€” mpd-sima will look for MPD_HOST and MPD_PORT to override built-in configuration (set to "localhost:6600").
    • mpd-sima expects MPD_HOST syntax as documented in the mpc manual, cf. mpc(1). To use a password, provide a value of the form password@host. πŸ”
  • HTTP_PROXY, HTTPS_PROXY β€” mpd-sima honors HTTP_PROXY environment variables.

🧚 CONFIGURATION 🧚

  • mpd_sima.cfg β€” mpd_sima.cfg is read if present. Otherwise built-in defaults are used. An example should be provided in the tarball within doc/examples/. On a Debian system please look in /usr/share/doc/mpd-sima. πŸ“‚

⭐ DEFAULTS ⭐

Default is to look for the MPD server at localhost:6600 (or MPD_HOST/MPD_PORT env. var. if set).

The default plugins will use Last.fm to find similar tracks to queue, and fallback to random if nothing is found.

To get the defaults as detected by mpd-sima on your system, you can run mpd-sima to print the config:

mpd-sima generate-config

For details about mpd_sima.cfg refer to the manual mpd_sima.cfg(5).


πŸ“ FILES πŸ“

  • ${XDG_CONFIG_HOME}/mpd_sima/mpd_sima.cfg β€” Configuration file.
  • ${XDG_DATA_HOME}/mpd_sima/sima.db β€” SQLite internal DB file. Stores play history and blocklists. πŸ—„οΈ
  • ${XDG_DATA_HOME}/mpd_sima/WEB_SERVICE/ β€” HTTP cache.

Usually XDG_DATA_HOME is set to ${HOME}/.local/share and XDG_CONFIG_HOME to ${HOME}/.config (for regular users). You may override them using the command line options --var-dir and --config (cf. mpd-sima(1)).


πŸ’œ SEE ALSO πŸ’œ

mpc(1), mpd(1)


πŸ™ˆ FEEDBACK/BUGS πŸ™ˆ

The maintainer would be more than happy to ear from you β€” don't hesitate to send feedback, https://kaliko.me/contact/

XMPP users are welcome to join the dedicated chat room at kaliko.me@conf.azylum.org β€” come hang, the group chat is open 🫢


πŸ’… AUTHOR πŸ’…

kaliko


2009-2022, kaliko


and that's the whole page, bestie ✨ this little baddie is MPD-SIMA(1) from MPD_sima, last touched Nov 04, 2022 β€” go queue something gorgeous, no cap πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from