etc/acpi/events/bl-down event=video/brightnessdown BRTDN 00000087 00000000 The following are the actions/events I defined in /etc/acpi/actions and /etc/acpi/events, respectively: Actionsīl_device=/sys/class/backlight/acpi_video0/brightnessĮcho $(($(cat $bl_device)-1)) | sudo tee $bl_deviceĮcho $(($(cat $bl_device)+1)) | sudo tee $bl_device What I ended up doing is creating acpi actions and events which corresponded to the keys being pressed. I ran into an issue upon a fresh installation of i3wm on my laptop where, for whatever reason, my XF86MonBrightnessUp/Down keys weren't being registered (I checked with xev). This is an old question, but an answer may help out others. Edit: You must have acpi installed on your machine for these to work :)Įdit 2: This code increments/decrements the brightness values by 1, but some models will have values that range in the thousands, so modify the change accordingly.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |