This is some acpi handers to call tiny scripts that change brightness and volume. Used for my laptop.
fix volume script
Readme.md update


browse  log 



You can also use your local clone with git send-email.

#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


This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.