banner

rinsmiles´ Guide to the Void

Version 2021.02



APPENDIX


Files in the Appendix should simply be copied to their corresponding system directories. Make sure that all files are readable, and additionally that all scripts are executable.

The scripts are made for dash (Debian Almquist shell), so they should be quite compatible.

WARNING: The scripts in the Power Management section below need more testing. They should be safe to try, but take a look at them prior to use.


POWER MANAGEMENT


/etc/acpi/events/ac_adapter
# Change power mode on power source transition
event=ac_adapter
action=/etc/acpi/handlers/power-ctl %e
/etc/acpi/handlers/power-ctl
See power-ctl on Github
/etc/acpi/resources/laptop_mode
See laptop_mode on Github

VOLUME AND BACKLIGHT


/etc/acpi/events/video-brightnessup
# Increase screen brightness through dedicated script
event=video/brightnessup
action=/etc/acpi/handlers/backlight-ctl.sh up
/etc/acpi/events/video-brightnessdown
# Decrease screen brightness through dedicated script
event=video/brightnessdown
action=/etc/acpi/handlers/backlight-ctl.sh down
/etc/acpi/handlers/backlight-ctl.sh
See backlight-ctl.sh on Github
/etc/acpi/events/button-volumeup
# Raise Master volume of default ALSA device
event=button/volumeup
action=/usr/bin/amixer set Master 5%%+
/etc/acpi/events/button-volumedown
# Lower Master volume of default ALSA device
event=button/volumedown
action=/usr/bin/amixer set Master 5%%-
/etc/acpi/events/button-volumemute
# Toggle Master volume of default ALSA device
event=button/mute
action=/usr/bin/amixer set Master toggle