Skip to content
Pulseaudio command line mixer
Branch: master
Clone or download
cdemoulins Merge pull request #17 from alhirzel/master
Add "--get-volume-human" option
Latest commit 5e3320d Feb 13, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore Added *.o files to gitignore Aug 24, 2014
COPYING The source code is now under the GPLv3 Sep 13, 2011
Makefile Simplify Makefile Apr 18, 2017
README.rst add "--get-volume-human" option that gives 75% or muted Feb 10, 2019
callbacks.cc Add callbaks files Jan 5, 2015
callbacks.hh Add callbaks files Jan 5, 2015
device.cc Added license headers Aug 24, 2014
device.hh Added license headers Aug 24, 2014
pamixer.cc
pulseaudio.cc
pulseaudio.hh Extract callbacks from pamixer.cc Jan 5, 2015

README.rst

pamixer: pulseaudio command line mixer

pamixer is like amixer but for pulseaudio. It can control the volume levels of the sinks.

Also, this project can provide you a small C++ library to control pulseaudio.

Features

  • Get the current volume of the default sink, the default source or a selected one by his id
  • Set the volume for the default sink, the default source or any other device
  • List the sinks
  • List the sources
  • Increase / Decrease the volume for a device (using gamma correction optionally)
  • Mute or unmute a device

Dependencies

  • libpulse
  • boost-program_options

Installation

  • From source:

    • Get the source:

      git clone https://github.com/cdemoulins/pamixer.git
      
    • Compile:

      make
      
    • And use it, no install command for now:

      ./pamixer --help
      
      Allowed options:
        -h [ --help ]         help message
        --sink arg            choose a different sink than the default
        --source arg          choose a different source than the default
        --default-source      select the default source
        --get-volume          get the current volume
        --get-volume-human    get the current volume percentage or the string "muted"
        --set-volume arg      set the volume
        -i [ --increase ] arg increase the volume
        -d [ --decrease ] arg decrease the volume
        -t [ --toggle-mute ]  switch between mute and unmute
        -m [ --mute ]         set mute
        --allow-boost         allow volume to go above 100%
        --gamma arg (=1)      increase/decrease using gamma correction e.g. 2.2
        -u [ --unmute ]       unset mute
        --get-mute            display true if the volume is mute, false otherwise
        --list-sinks          list the sinks
        --list-sources        list the sources
      
You can’t perform that action at this time.