Skip to content

Instantly share code, notes, and snippets.

@ascarter
Created March 24, 2025 05:01
Show Gist options
  • Save ascarter/5e1a7e9dead589d04fdf659b51d21077 to your computer and use it in GitHub Desktop.
Save ascarter/5e1a7e9dead589d04fdf659b51d21077 to your computer and use it in GitHub Desktop.
Hyper + vim arrows
{
"title": "HHKB: Hyper on Left Control + Arrow keys on HJKL (Hyper layer)",
"rules": [
{
"description": "Left Control → Control when tapped, Hyper when held",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "left_control",
"modifiers": {
"optional": ["any"]
}
},
"to": [
{
"key_code": "left_control"
}
],
"to_if_held_down": [
{
"modifiers": ["left_command", "left_control", "left_option", "left_shift"],
"key_code": "vk_none"
}
]
}
]
},
{
"description": "Hyper + HJKL → Arrow Keys (with Left Control as Hyper)",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "h",
"modifiers": {
"mandatory": ["left_command", "left_control", "left_option", "left_shift"]
}
},
"to": [
{
"key_code": "left_arrow"
}
]
},
{
"type": "basic",
"from": {
"key_code": "j",
"modifiers": {
"mandatory": ["left_command", "left_control", "left_option", "left_shift"]
}
},
"to": [
{
"key_code": "down_arrow"
}
]
},
{
"type": "basic",
"from": {
"key_code": "k",
"modifiers": {
"mandatory": ["left_command", "left_control", "left_option", "left_shift"]
}
},
"to": [
{
"key_code": "up_arrow"
}
]
},
{
"type": "basic",
"from": {
"key_code": "l",
"modifiers": {
"mandatory": ["left_command", "left_control", "left_option", "left_shift"]
}
},
"to": [
{
"key_code": "right_arrow"
}
]
},
{
"type": "basic",
"from": {
"key_code": "u",
"modifiers": {
"mandatory": ["left_command", "left_control", "left_option", "left_shift"]
}
},
"to": [
{
"key_code": "page_up"
}
]
},
{
"type": "basic",
"from": {
"key_code": "o",
"modifiers": {
"mandatory": ["left_command", "left_control", "left_option", "left_shift"]
}
},
"to": [
{
"key_code": "page_down"
}
]
},
{
"type": "basic",
"from": {
"key_code": "y",
"modifiers": {
"mandatory": ["left_command", "left_control", "left_option", "left_shift"]
}
},
"to": [
{
"key_code": "home"
}
]
},
{
"type": "basic",
"from": {
"key_code": "p",
"modifiers": {
"mandatory": ["left_command", "left_control", "left_option", "left_shift"]
}
},
"to": [
{
"key_code": "end"
}
]
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment