Skip to content
This repository has been archived by the owner on Jun 8, 2023. It is now read-only.

Pauses all running media players when the session ends

License

Notifications You must be signed in to change notification settings

eliostvs/tomate-playerautopause-plugin

Repository files navigation

Tomate Player Auto-Pause Plugin

Move package to tomate-gtk repository.

Pauses all running media players when the session ends

Installation

Ubuntu

apt install tomate-playerautopause-plugin

Development

Install the following native dependencies in you system:

  • Python3
  • pip3
  • make
  • git
  • git-flow
  • tomate/tomate-gtk
  • gir1.2-playerctl-2.0

Install the Python development dependencies:

pip install --user black bumpversion copier pytest pytest-cov pytest-flake8 pytest-mock pre-commit

Create the plugin project:

copier gh:eliostvs/tomate-plugin-template path/to/plugin/project`

Media Files

If this plugin uses media files (icons, mp3, etc), copy them to the data directory in root of the repository.

Testing

Personalize the .pre-commit-config.yaml

Format the files using black:

make format

Run test in your local environment:

make test

Run test inside the docker:

make docker-test

Test manually the plugin:

ln -s ~/.local/share/tomate/plugins path/to/plugin/project/data/plugins
tomate-gtk -v

Then activate the plugin through the settings.

Release

Update the [Unrelease] section in the CHANGELOG.md file then:

make release-[patch|minor|major]

About

Pauses all running media players when the session ends

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published