Last active
January 25, 2021 01:08
-
-
Save redraw/b9e68cc9f31de8c33a512546eb9aac3b to your computer and use it in GitHub Desktop.
Thinkpad T14 ACPI event/action hotkey
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/acpi/events/thinkpad-hotkeys | |
event=ibm/hotkey | |
action=/etc/acpi/thinkpad-hotkeys.sh %e |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/acpi/thinkpad-hotkeys.sh | |
EVENT=$1 | |
CODE=$4 | |
logger "[acpid] Thinkpad hotkey pressed: $EVENT $CODE" | |
case $CODE in | |
"00001317") # F9 | |
;; | |
"00001318") # F10 | |
;; | |
"00001319") # F11 | |
;; | |
esac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment