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
- Host: GitHub
- URL: https://github.com/esdmr/mpris-scripts
- Owner: esdmr
- Created: 2023-11-24T12:58:16.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-24T19:43:01.000Z (about 2 years ago)
- Last Synced: 2025-01-21T15:13:43.056Z (about 1 year ago)
- Topics: mpris, script-runner
- Language: Python
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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`.