Skip to content

Instantly share code, notes, and snippets.

@cdpath
Last active August 6, 2025 07:57
Show Gist options
  • Save cdpath/1f2a7475e1ee2b67d8115183121dd345 to your computer and use it in GitHub Desktop.
Save cdpath/1f2a7475e1ee2b67d8115183121dd345 to your computer and use it in GitHub Desktop.
karabiner configurations

download karabiner-elements at https://karabiner-elements.pqrs.org/

save the keykey_apple_books.json to ~/.config/karabiner/assets/complex_modifications/keykey_highlights.json

enable on karabiner-elements: settings -> complex modifications -> add predefined rule

{
"title": "KeyKey Page Turner for Apple Books Only",
"rules": [
{
"description": "KeyKey volume keys control Apple Books pages",
"manipulators": [
{
"conditions": [
{
"identifiers": [
{
"vendor_id": 21090,
"product_id": 19275
},
{
"vendor_id": 2007
}
],
"type": "device_if"
}
],
"from": {
"consumer_key_code": "volume_decrement"
},
"to": [
{
"shell_command": "osascript -e 'tell application \"Books\" to activate' -e 'tell application \"System Events\" to key code 124'"
}
],
"type": "basic"
},
{
"conditions": [
{
"identifiers": [
{
"vendor_id": 21090,
"product_id": 19275
},
{
"vendor_id": 2007
}
],
"type": "device_if"
}
],
"from": {
"consumer_key_code": "volume_increment"
},
"to": [
{
"shell_command": "osascript -e 'tell application \"Books\" to activate' -e 'tell application \"System Events\" to key code 123'"
}
],
"type": "basic"
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment