El Decko backend to control MPRIS2 compatible media players
Project description
El Decko MPRIS-Backend
An El Decko backend to control media applications via the MPRIS2 dbus interface.
First run
Upon running El Decko the first time with this backend installed it will create an empty default config to connect to
your local OBS Studio instance at: $XDG_CONFIG/eldecko/backend/mpris.json
.
Please update the generated default credentials with the actual port and password of what is shown inside your OBS
Studio Websocket Settings.
Use this backend
In order to use this backend you need to supply the streamdeck.json
generated
by El Decko Core with the following key_config
:
{
"STREAM_DECK_SERIAL_NUMBER": {
"brightness": 30,
"key_config": {
"0": {
"backend": "edb_mpris",
"event": "PLAY",
"event_parameters": {"player":"rhythmbox"},
"image_idle": null,
"image_pressed": null
}
}
}
}
This will configure the very first key (0
) to use this plugin (edb_mpris
) and bind the event PLAY
to it.
If the event_parameters
are kept empty "event_parameters": {}
the respective event will be send to all available
MPRIS2 clients.
If event_parameters
contains "player":"<some_mpris_player_name"
it will only send the MPRIS event to all players
matching player
.
Supported MPRIS2 controls
- Play
- Play/Pause
- Next
- Previous
Additional controls
- Mute
- Unmute
- Toggle Mute
Requirements
Python
Python >= 3.8
pympris
dbus-python
cmake
dbus-1-devel
glib2-devel
python3**-devel
python3**-gobject-Gdk
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for el_decko_backend_mpris-2023.5.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 999dc3ff0590869c3620cfcfa48afb76661ebda24bb00f04f3ba07d013429d80 |
|
MD5 | d1dcc5e63c14b4e7b0d3642786012f59 |
|
BLAKE2b-256 | f2a0df3a046802ff7dbe19dfcf37a9b1c25fee026e03e81dbaf96b8efae843ef |
Hashes for el_decko_backend_mpris-2023.5.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3aa49c99a2ad1299129bce534f82b4a3d6fd970de750cb309fa58677dcf7c148 |
|
MD5 | 9d4d8f0959f764455de44300d68355b7 |
|
BLAKE2b-256 | b687ccfccc0e0675895811a2957ecd31636d8f53f68d3d758bd44fb4a3a9b88a |