#audio #cli #mpris #slimserver #squeezelite

app mprisqueeze

A command-line client for controlling squeezelite via MPRIS

3 releases

0.1.2 May 22, 2023
0.1.1 May 2, 2023
0.1.0 May 2, 2023

#50 in Audio

Download history 49/week @ 2023-04-29 9/week @ 2023-05-06 4/week @ 2023-05-13 35/week @ 2023-05-20 7/week @ 2023-05-27

61 downloads per month

MIT license

34KB
877 lines

mprisqueeze

CI

mprisqueeze is a wrapper over squeezelite. It starts squeezelite in the background and exposes an MPRIS interface to control it with MPRIS clients such as playerctl.

By default, mprisqueeze will try to discover the LMS server on the local network. To specify a host and a port:

$ mprisqueeze -H somehost -P 9000

The default command line for squeezelite is: squeezelite -n SqueezeLite. It starts squeezelite registering itself on LMS with the name SqueezeLite. To use another name, one can use:

$ mprisqueeze -p my-player

The command to start squeezelite can be changed with the last arguments, preceded by a --, for example:

$ mprisqueeze -- squeezelite -f ./squeezelite.log -n {}

Note that mprisqueeze must know the name squeezelite will use. Therefore the squeezelite command line must contains the string {}. It is replaced by the player name when starting the process.

Dependencies

~13–24MB
~485K SLoC