Giter Club home page Giter Club logo

pamixer's Introduction

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
  • cxxopts

You need the headers as well (β€œ-dev” packages for Debian).

Installation

  • From source:

    • Get the source:

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

      meson setup build
      meson compile -C build
      
    • And use it:

      ./build/pamixer --help
      pulseaudio command line mixer
      Usage:
        pamixer [OPTION...]
      
        -h, --help              help message
        -v, --version           print version info
            --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%
            --set-limit arg     set a limit for the volume
            --gamma arg         increase/decrease using gamma correction e.g. 2.2
                                (default: 1.0)
        -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
            --get-default-sink  print the default sink
      
    • Or install it:

      meson install -C build
      

pamixer's People

Contributors

cdemoulins avatar skruppy avatar basil-conto avatar pmkap avatar alhirzel avatar oxij avatar ammgws avatar johnbotris avatar gebi avatar roryrjb avatar wilzbach avatar expectocode avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.