Skip to main content

Pause/Resume your media players on screen locking/unlocking

Project description

Automatically pause your music player when the screen gets locked and resume plaback, once the screen is unlocked again.

This is basically the bash script with the same name rewritten in Python. The benefit of the Python version is that it should detect the screensaver you use and running player(s) automatically, as long, as they are visible on the D-Bus. So, no need for ever growing arrays of supported applications in the code and no configuration necessary.

Installation

Pause on Lock is available on pypi, so all you have to do is run pip install pauseonlock.

Usage

After installing, simply run pauseonlock. There will be no output, since the program is intended to be run in the background. For maximum convenience configure your desktop environment to start pauseonlock every time you log in.

Dependencies

The only dependency is python-dbus-next which itself has no further dependencies.

Download files

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

Source Distribution

pauseonlock-0.1.0.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

pauseonlock-0.1.0-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file pauseonlock-0.1.0.tar.gz.

File metadata

  • Download URL: pauseonlock-0.1.0.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.5

File hashes

Hashes for pauseonlock-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7f6af0282e096a6c7c3bad2cc2c9b69f1444fef83009b5d2fdb5f1f994f5979f
MD5 7c08ecac41bde85c7ea4b99e5fee9c2e
BLAKE2b-256 7cb5bbea7f4656decf12c93e33e3e95a3b92c762e921bb9bb4b24c01dae9c668

See more details on using hashes here.

File details

Details for the file pauseonlock-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pauseonlock-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.5

File hashes

Hashes for pauseonlock-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e886e2d7e2c028e5b4f6a598a3979038fc92f4ae83186969f51e0b40deb02b28
MD5 ad706b05fc5d4d5f84db81570d427bbc
BLAKE2b-256 70941a631306d57046e4912cabe880a9473286c7912fd5d3105ea3d9aadfc405

See more details on using hashes here.

Supported by

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