Coder Social home page Coder Social logo

acpi_volume_brightness's Introduction

ACPI Control for Volume & Brightness

Volume was made a little trickey because of how pulseaudio seems to work. I had trouble using pactl so I am using amixer. Since there is no pulse session in root it does funny things like mutting master and speaker but then only unmuting master. To get around this I just made it so speaker is always unmutted, as well as headphone if they are plugged in. To tell the volume script it the headpines are plugged in I use a file that will catain "in" or "out" /var/tmp/headphones.log.

You can use acpi_listen and press buttons to see what their names are. They seem to be in three parts like

❯ acpi_listen
jack/headphone HEADPHONE plug

You can use this to make acpi to do all kinds of stuff.

├── README.md
├── etc
│   └── acpi
│       ├── events
│       │   └── anything
│       └── handler.sh
└── usr
    └── local
        └── bin
            ├── brightness_push
            └── volume


6 directories, 5 files

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.