An open API service indexing awesome lists of open source software.

https://github.com/esdmr/mpris-scripts

Run scripts via MPRIS media controls
https://github.com/esdmr/mpris-scripts

mpris script-runner

Last synced: 11 months ago
JSON representation

Run scripts via MPRIS media controls

Awesome Lists containing this project

README

          

# MPRIS Scripts

Run scripts via the MPRIS/D-Bus protocol. With this tool, you can control your
scripts from various devices and applications, including:

- â¯ī¸ **OS media control**
- 📱 **mobile apps** like KDE Connect
- ⌚ **smartwatches and bands**

## Usage

1. 🐍 **Install Python 3.12 or later** on your system.
2. đŸ“Ļ **Install the dependencies** using PDM or other PEP 518 compatible package managers.
3. âš™ī¸ **Create a config file.** You can refer to the
[`example.json`](example.json) file for an example.
4. â–ļī¸ **Start the server** using the following command: `python3 mpris_scripts --config config.json`.

## Features

- 📜 **Scroll through your scripts** via previous/next buttons.
- âšī¸ **Run and stop scripts.**
- â¯ī¸ Optionally **pause scripts** via `SIGSTOP` and `SIGCONT`.