Skip to content

Instantly share code, notes, and snippets.

@redraw
Last active January 25, 2021 01:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save redraw/b9e68cc9f31de8c33a512546eb9aac3b to your computer and use it in GitHub Desktop.
Save redraw/b9e68cc9f31de8c33a512546eb9aac3b to your computer and use it in GitHub Desktop.
Thinkpad T14 ACPI event/action hotkey
# /etc/acpi/events/thinkpad-hotkeys
event=ibm/hotkey
action=/etc/acpi/thinkpad-hotkeys.sh %e
# /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