Skip to main content

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

el_decko_backend_mpris-2023.5.6.1.tar.gz (15.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

el_decko_backend_mpris-2023.5.6.1-py3-none-any.whl (16.5 kB view details)

Uploaded Python 3

File details

Details for the file el_decko_backend_mpris-2023.5.6.1.tar.gz.

File metadata

  • Download URL: el_decko_backend_mpris-2023.5.6.1.tar.gz
  • Upload date:
  • Size: 15.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/6.3.0 pkginfo/1.9.6 requests/2.28.2 requests-toolbelt/0.9.1 tqdm/4.64.1 CPython/3.10.10

File hashes

Hashes for el_decko_backend_mpris-2023.5.6.1.tar.gz
Algorithm Hash digest
SHA256 be6db130787f9168d433964619764304536320ce2ee5e0faf22897302d02feb0
MD5 17c91fef339fc0bc14a735d7ec335620
BLAKE2b-256 597a34ebd7ac0e4924c858ec719c45c87c618fbb9abbbca285fb77326479c548

See more details on using hashes here.

File details

Details for the file el_decko_backend_mpris-2023.5.6.1-py3-none-any.whl.

File metadata

  • Download URL: el_decko_backend_mpris-2023.5.6.1-py3-none-any.whl
  • Upload date:
  • Size: 16.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/6.3.0 pkginfo/1.9.6 requests/2.28.2 requests-toolbelt/0.9.1 tqdm/4.64.1 CPython/3.10.10

File hashes

Hashes for el_decko_backend_mpris-2023.5.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 893d997168122bf98fd9e6b7812130ddfcad5d8cf035f0d65c86cbdfe3a3f6a0
MD5 072d9d7a67aacd4edb00d8b514b897f1
BLAKE2b-256 8bdf78f2f7d2aceeaaa0587b0d144da046ba22a1fd0f634e80683d818123832d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page