Skip to content

Easily control PulseAudio volume from the command-line

License

Notifications You must be signed in to change notification settings

amarakon/pavol-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PAvol-Cli – PulseAudio Volume Command-Line

Contents

PAvol-Cli is a simple command-line utility to control PulseAudio volume from the command-line.

Usage

`# user` pavol +10 # Increase output volume by 10
`# user` pavol -i -10 # Decrease input volume by 10
`# user` pavol -n 50 # Set volume to 50 and play a notification sound
`# user` pavol -iv 50 -ov 50 # Set both input and output volume to 50

`# user` pavol -m # Mute the output sink
`# user` pavol -u # Unmute the output sink
`# user` pavol -it # Toggle mute the input source

For more detfails, please run `# user` pavol --help.

Dependencies

  1. PulseAudio

Installation

Universal

`# user` git clone https://github.com/amarakon/pavol-cli
`# user` cd pavol-cli
`# root` make install

Gentoo

`# root` eselect repository add amarlay git https://github.com/amarakon/amarlay
`# root` emerge --sync amarlay
`# root` emerge media-sound/pavol-cli

Uninstallation

Universal

`# user` cd pavol-cli
`# root` make uninstall

Gentoo

`# root` emerge -c media-sound/pavol-cli
# Remove my overlay (optional)
`# root` eselect-repository remove -f amarlay
`# root` emerge --sync

Configuration

Configuring PAvol-Cli can be done by editing the configuration file (~/.config/pavol/pavol.conf):

# Update [Mstatus](https://github.com/amarakon/mstatus)' volume modules
status() { pkill -RTMIN "^mstatus$" & pkill -RTMIN+1 "^mstatus$"; }
trap status EXIT

# Always notify after changing output volume
notify=true