Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ironedr/pulseaudiocontrol
Volume controller for pulseaudio with bash without needing to identify the current sink being used.
https://github.com/ironedr/pulseaudiocontrol
bash bash-script i3-config i3wm pactl pulseaudio
Last synced: about 2 months ago
JSON representation
Volume controller for pulseaudio with bash without needing to identify the current sink being used.
- Host: GitHub
- URL: https://github.com/ironedr/pulseaudiocontrol
- Owner: IroNEDR
- License: mit
- Created: 2019-02-25T19:24:25.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-02-25T19:53:05.000Z (almost 6 years ago)
- Last Synced: 2024-10-15T19:29:30.680Z (3 months ago)
- Topics: bash, bash-script, i3-config, i3wm, pactl, pulseaudio
- Language: Shell
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pulseaudioControl
Volume controller for pulseaudio with bash without needing to identify the current sink being used.
I wrote this script for my i3 setup with pulseaudio. I wanted to be able to change the volume for all my devices at once.## Functions
* increaseVolume(): Increases the volume for all sinks by 5%
* decreaseVolume(): Decreases the volume for all sinks by 5%
* toggleMute(): Mute or unmute all sinks## Example
```bash
./setVolume functionName
```Or inside the config file for your i3wm media keys:
```bash
# Pulse Audio controls
#increase sound volume:
bindsym XF86AudioRaiseVolume exec --no-startup-id /path/to/setVolume.sh increaseVolume
#decrease sound volume:
bindsym XF86AudioLowerVolume exec --no-startup-id /path/to//setVolume.sh decreaseVolume
# mute sound:
bindsym XF86AudioMute exec --no-startup-id /path/to/setVolume.sh toggleMute
```