Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/graysky2/pulseaudio-ctl
Control pulseaudio volume from the shell or mapped to keyboard shortcuts. No need for alsa-utils.
https://github.com/graysky2/pulseaudio-ctl
Last synced: 3 months ago
JSON representation
Control pulseaudio volume from the shell or mapped to keyboard shortcuts. No need for alsa-utils.
- Host: GitHub
- URL: https://github.com/graysky2/pulseaudio-ctl
- Owner: graysky2
- Created: 2011-12-11T03:13:20.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2022-05-01T04:53:57.000Z (over 2 years ago)
- Last Synced: 2024-06-22T17:40:18.287Z (5 months ago)
- Language: Shell
- Homepage: https://bbs.archlinux.org/viewtopic.php?id=124513
- Size: 77.1 KB
- Stars: 274
- Watchers: 16
- Forks: 36
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Pulseaudio-ctl
Simple bash script to allow for control of pulseaudio without alsautils. Simply map the following to keyboard shortcuts in your DE or WM. Xfce4 allows for this under Settings > Keyboard > Application Shortcuts./usr/bin/pulseaudio-ctl mute ==> Toggle status of mute
/usr/bin/pulseaudio-ctl mute-input ==> Toggle status of mute for mic
/usr/bin/pulseaudio-ctl up ==> Increase vol by 5 %
/usr/bin/pulseaudio-ctl up 25 ==> Increase vol by 25 %
/usr/bin/pulseaudio-ctl down ==> Decrease vol by 5 %
/usr/bin/pulseaudio-ctl down 50 ==> Decrease vol by 50 %
/usr/bin/pulseaudio-ctl set 40 ==> Set vol to 40%
/usr/bin/pulseaudio-ctl atmost 30 ==> Set vol to 30% if current higher than that## Configuration
A config file resides in ~/.config/pulseaudio-ctl/config and allows for some options including:Example:
```bash
# The default setting is for pulseaudio-ctl to NOT increase to volume level
# above 100 % but Some users may wish exceed this level. If this describes
# your use case, uncomment the UPPER_THRESHOLD variable below setting it to
# the new upper threshold.
#
UPPER_THRESHOLD=150# Push output through libnotify. Set to any value to enable this feature
# and note that you must have /usr/bin/notify-send to use this. On Arch
# libnotify provides this. Other distros may not name it as such.
NOTIFY=yes# Show a graphical progress-bar type visualization of the volume level in
# libnotify. No setting or commented out will show a simply percentage but
# a setting will convert the percentage to a progress-bar in libnotify.
#
BARCHART=yes# Use KDE OSD notification. Set to any value to enable this feature.
KDE_OSD=yes
```If config file isn't present script uses default value 100 for the UPPER_THRESHOLD and notifications are disabled by default.
## Links
AUR package: https://aur.archlinux.org/packages/pulseaudio-ctl