Introduction #
The acpid daemon reads configuration files to determine what actions to take for each event. These configuration files are usually located in the /etc/acpi/events/ directory. Each event has a corresponding script in the /etc/acpi/actions/ directory that defines the action to be taken.
Key name #
Run acpi_listen to get the name of the key that is pressed.
Event files #
Volume Down #
event=button/volumedown
action=sudo -u karmst XDG_RUNTIME_DIR=/run/user/1000 /home/karmst/scripts/vol_down.shVolume Up #
event=button/volumeup
action=sudo -u karmst XDG_RUNTIME_DIR=/run/user/1000 /home/karmst/scripts/vol_up.shVolume Mute #
event=button/mute
action=sudo -u karmst XDG_RUNTIME_DIR=/run/user/1000 pamixer --toggle-mute