Skip to main content

Watches PulseAudio events for new sinks connected, and if the name matches the configured name, make that sink the default sink.

Project description

Watches PulseAudio events for new sinks connected, and if the name matches the configured name, make that sink the default sink.

Installation

Probably works best when installed with pipx pipx install audio-connected or uv uv tool install audio-connected.

To make it run on startup, you can add a XDG Autostart entry in $XDG_CONFIG_HOME/autostart (~/.config/autostart by default). An example audio-connected.desktop file is included in the source distribution, and can be copied to the autostart directory.

Example:

[Desktop Entry]
Version=1.5
Type=Application
Name=Audio Connected
Comment=Set EPOS ADAPT 660 headset as default sink when connected
Exec=audio-connected "EPOS ADAPT 660"
OnlyShowIn=XFCE;
StartupNotify=false
Terminal=false
Hidden=false

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

audio_connected-0.2.0.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

audio_connected-0.2.0-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file audio_connected-0.2.0.tar.gz.

File metadata

  • Download URL: audio_connected-0.2.0.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.5 CPython/3.12.3 Linux/6.8.0-51-generic

File hashes

Hashes for audio_connected-0.2.0.tar.gz
Algorithm Hash digest
SHA256 1fe9da36a548b3253d4827656b8e7ab5c737d2d3183ca39483bf3f3d9d8938c7
MD5 76f7118f3abce2ac73c4b10a5547dccc
BLAKE2b-256 b4a188c1fe414f60aa39556ac66d700aae7b873544b74dfbceab516a9f703d86

See more details on using hashes here.

File details

Details for the file audio_connected-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: audio_connected-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.5 CPython/3.12.3 Linux/6.8.0-51-generic

File hashes

Hashes for audio_connected-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f4939f9242e0ca2672e12b83a68328522c0ce146abefa48d49f5b75dcdb3953d
MD5 dc780b9b19eadebf36a9ddeea7f3929e
BLAKE2b-256 c5472476083196ccb6d9d5c3058d56e867f735c159234073d3c634eb761c2824

See more details on using hashes here.

Supported by

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