| Name | pulseaudio-device-control JSON |
| Version |
0.4
JSON |
| download |
| home_page | None |
| Summary | A simple script to control PulseAudio devices |
| upload_time | 2025-07-30 01:01:39 |
| maintainer | None |
| docs_url | None |
| author | None |
| requires_python | >=3.8 |
| license | MIT License
Copyright (c) 2024 Brenton Leighton
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
|
| keywords |
pulseaudio
|
| VCS |
 |
| bugtrack_url |
|
| requirements |
No requirements were recorded.
|
| Travis-CI |
No Travis.
|
| coveralls test coverage |
No coveralls.
|
# 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](https://github.com/mk-fg/python-pulse-control).
This package can be installed using [pipx](https://pipx.pypa.io/stable/installation/):
```bash
pipx install pulseaudio_device_control
```
## Usage
```bash
pulseaudio_device_control OPERATION DEVICE_TYPE [AMOUNT]
```
Where:
- `OPERATION` is `raise`, `lower`, `mute`, or `next`
- `DEVICE_TYPE` is `sink` or `source`
- `AMOUNT` is 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.
```ini
[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:
```python
import pulsectl
pulse = pulsectl.Pulse()
print([sink.name for sink in pulse.sink_list()])
print([source.name for source in pulse.source_list()])
```
Raw data
{
"_id": null,
"home_page": null,
"name": "pulseaudio-device-control",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": "Brenton Leighton <12228142+brenton-leighton@users.noreply.github.com>",
"keywords": "pulseaudio",
"author": null,
"author_email": "Brenton Leighton <12228142+brenton-leighton@users.noreply.github.com>",
"download_url": "https://files.pythonhosted.org/packages/57/01/148b26eb09ca1b2e85185dcc02907cb485be4ad3241ebe3c3616a6fd0c46/pulseaudio_device_control-0.4.tar.gz",
"platform": null,
"description": "# pulseaudio_device_control\n\nA simple script to control PulseAudio devices.\nMainly this is to easily cycle the default sink or source.\n\n## Installation\n\npulseaudio\\_device\\_control depends on [pulsectl](https://github.com/mk-fg/python-pulse-control).\n\nThis package can be installed using [pipx](https://pipx.pypa.io/stable/installation/):\n\n```bash\npipx install pulseaudio_device_control\n```\n\n## Usage\n\n```bash\npulseaudio_device_control OPERATION DEVICE_TYPE [AMOUNT]\n```\n\nWhere:\n\n- `OPERATION` is `raise`, `lower`, `mute`, or `next`\n- `DEVICE_TYPE` is `sink` or `source`\n- `AMOUNT` is a percentage value for the raise and lower operations (optional, defaults to 2)\n\nWhen using `next` any device name ending with `monitor` is skipped.\n\n## Configuration\n\npulseaudio_device_control can be configured with a file located at `~/.config/pulseaudio_device_control/config.ini`,\ne.g.\n\n```ini\n[next]\n# Ignore devices from the next command (devices ending in \"monitor\" are always ignored)\nsink_ignore = [\"sink_name1\", \"sink_name2\"]\nsource_ignore = [\"source_name1\", \"source_name2\"]\n```\n\nThe names of PulseAudio sink/source devices can be printed with:\n\n```python\nimport pulsectl\n\npulse = pulsectl.Pulse()\nprint([sink.name for sink in pulse.sink_list()])\nprint([source.name for source in pulse.source_list()])\n```\n",
"bugtrack_url": null,
"license": "MIT License\n \n Copyright (c) 2024 Brenton Leighton\n \n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n \n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n \n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n ",
"summary": "A simple script to control PulseAudio devices",
"version": "0.4",
"project_urls": {
"Homepage": "https://github.com/brenton-leighton/pulseaudio_device_control"
},
"split_keywords": [
"pulseaudio"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "16afa73f9dca6db55853c058fc51effebec9b395fa42e542ac14e6c3943cca61",
"md5": "0e967d3a038daa638f474393a9829977",
"sha256": "65241ad9b432460a554bcba348943c51502f9909dc1e165e79211ee9c3a4661f"
},
"downloads": -1,
"filename": "pulseaudio_device_control-0.4-py3-none-any.whl",
"has_sig": false,
"md5_digest": "0e967d3a038daa638f474393a9829977",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 6123,
"upload_time": "2025-07-30T01:01:38",
"upload_time_iso_8601": "2025-07-30T01:01:38.202635Z",
"url": "https://files.pythonhosted.org/packages/16/af/a73f9dca6db55853c058fc51effebec9b395fa42e542ac14e6c3943cca61/pulseaudio_device_control-0.4-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "5701148b26eb09ca1b2e85185dcc02907cb485be4ad3241ebe3c3616a6fd0c46",
"md5": "45cfa489b12460947d2ca478b5bd1afd",
"sha256": "839a728f9367aa850264263bcec5b16ffd3fe5196e5a67c5218a4926bfc39885"
},
"downloads": -1,
"filename": "pulseaudio_device_control-0.4.tar.gz",
"has_sig": false,
"md5_digest": "45cfa489b12460947d2ca478b5bd1afd",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 4536,
"upload_time": "2025-07-30T01:01:39",
"upload_time_iso_8601": "2025-07-30T01:01:39.100344Z",
"url": "https://files.pythonhosted.org/packages/57/01/148b26eb09ca1b2e85185dcc02907cb485be4ad3241ebe3c3616a6fd0c46/pulseaudio_device_control-0.4.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-07-30 01:01:39",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "brenton-leighton",
"github_project": "pulseaudio_device_control",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "pulseaudio-device-control"
}