pulseaudio_device_control
A simple script to control PulseAudio devices. Mainly this is to easily cycle the default sink or source.
Installation
pulseaudio_device_control depends on pulsectl.
This package can be installed using pipx:
pipx install pulseaudio_device_control
Usage
pulseaudio_device_control OPERATION DEVICE_TYPE [AMOUNT]
Where:
OPERATIONisraise,lower,mute, ornextDEVICE_TYPEissinkorsourceAMOUNTis a percentage value for the raise and lower operations (optional, defaults to 2)
When using next any device name ending with monitor is skipped.
Configuration
pulseaudio_device_control can be configured with a file located at ~/.config/pulseaudio_device_control/config.ini,
e.g.
[next]
# Ignore devices from the next command (devices ending in "monitor" are always ignored)
sink_ignore = ["sink_name1", "sink_name2"]
source_ignore = ["source_name1", "source_name2"]
The names of PulseAudio sink/source devices can be printed with:
import pulsectl
pulse = pulsectl.Pulse()
print([sink.name for sink in pulse.sink_list()])
print([source.name for source in pulse.source_list()])
Metadata
Release files for pulseaudio-device-control 0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pulseaudio_device_control-0.4.tar.gz | 4.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pulseaudio_device_control-0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.7 kB
Release files / pulseaudio_device_control-0.4.tar.gz
| Download URL | pulseaudio_device_control-0.4.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
839a728f9367aa850264263bcec5b16ffd3fe5196e5a67c5218a4926bfc39885
|
|
BLAKE2b-256 checksum How to use checksums |
5701148b26eb09ca1b2e85185dcc02907cb485be4ad3241ebe3c3616a6fd0c46
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.3
|
Release files / pulseaudio_device_control-0.4-py3-none-any.whl
| Download URL | pulseaudio_device_control-0.4-py3-none-any.whl |
|---|---|
| Size | 6.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
65241ad9b432460a554bcba348943c51502f9909dc1e165e79211ee9c3a4661f
|
|
BLAKE2b-256 checksum How to use checksums |
16afa73f9dca6db55853c058fc51effebec9b395fa42e542ac14e6c3943cca61
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.3
|