Skip to content

Instantly share code, notes, and snippets.

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 rolandcrosby/57db2d67ba75b93af8ede0b5b80d998e to your computer and use it in GitHub Desktop.
Save rolandcrosby/57db2d67ba75b93af8ede0b5b80d998e to your computer and use it in GitHub Desktop.
{
"title": "Swap fn and left ctrl on internal keyboard",
"rules": [
{
"description": "Change fn to left ctrl",
"manipulators": [
{
"conditions": [
{
"type": "device_if",
"identifiers": [
{"vendor_id": 1452, "product_id": 627},
{"vendor_id": 1452, "product_id": 657}
]
}
],
"type": "basic",
"from": {"key_code": "fn"},
"to": [{"key_code": "left_control"}]
}
]
},
{
"description": "Change left ctrl to fn",
"manipulators": [
{
"conditions": [
{
"type": "device_if",
"identifiers": [
{"vendor_id": 1452, "product_id": 627},
{"vendor_id": 1452, "product_id": 657}
]
}
],
"type": "basic",
"from": {"key_code": "left_control"},
"to": [{"key_code": "fn"}]
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment