Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save OKsign/359ed68c4fd5c4568576baeeaf769b5e to your computer and use it in GitHub Desktop.
Save OKsign/359ed68c4fd5c4568576baeeaf769b5e to your computer and use it in GitHub Desktop.
{"title": "Rules for Karabiner-Elements | Tested Version: 11.6.0",
"rules": [
{ "description": "Press Left Option Twice - Resize Window with ModMove",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "left_option",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "left_shift"
},
{
"key_code": "left_shift"
},
{
"key_code": "left_shift"
},
{
"key_code": "left_shift"
},
{
"key_code": "left_shift"
},
{
"key_code": "left_control"
},
{
"key_code": "left_control"
},
{
"key_code": "left_option"
},
{
"key_code": "left_option"
},
{
"key_code": "left_shift"
},
{
"key_code": "left_shift"
}
],
"conditions": [
{
"type": "variable_if",
"name": "key pressed",
"value": 1
}
]
},
{
"type": "basic",
"from": {
"key_code": "left_option",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"set_variable": {
"name": "key pressed",
"value": 1
}
},
{
"key_code": "left_option"
}
],
"to_delayed_action": {
"to_if_invoked": [
{
"set_variable": {
"name": "key pressed",
"value": 0
}
}
],
"to_if_canceled": [
{
"set_variable": {
"name": "key pressed",
"value": 0
}
}
]
}
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment