Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create rule to send Fn + Fx instead of Fx unless builtin keyboard #1739

Merged
merged 1 commit into from
Oct 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<link rel="stylesheet" href="../../vendor/css/bootstrap.min.css" />

<h4>Description</h4>
<h5>Send Fn + Function keys for external keyboards.</h5>

<h4>Notes</h4>
<p>From v15.2.0 of Karabiner Element the F1-F12 key events sent by Karabiner-Elements, macOS will convert them once again into media keys (e.g., sending F10 will trigger mute).
<br/> If you want to send F1-F12 as-is using Complex Modifications, you will need to send fn+F1-F12 through Karabiner-Elements.
<br/> This rule will send the F1-F12 keys as if you were pressing the fn key on an external keyboard.
</p>
4 changes: 4 additions & 0 deletions public/groups.json
Original file line number Diff line number Diff line change
Expand Up @@ -674,6 +674,10 @@
},
{
"path": "json/caps_lock_bepo_tsrn.json"
},
{
"path": "json/f_keys_to_fn_f_keys_unless_builtin.json",
"extra_description_path": "extra_descriptions/f_keys_to_fn_f_keys_unless_builtin.json.html"
}
]
},
Expand Down
202 changes: 202 additions & 0 deletions public/json/f_keys_to_fn_f_keys_unless_builtin.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,202 @@
{
"title": "Send Fn + Function key instead of Function key unless builtin",
"rules": [
{
"description": "Rule: Fn + Fx instead of Fx unless builtin",
"manipulators": [
{
"conditions": [
{
"identifiers": [{ "is_built_in_keyboard": true }],
"type": "device_unless"
}
],
"from": { "key_code": "f1" },
"to": [
{
"key_code": "f1",
"modifiers": ["fn"]
}
],
"type": "basic"
},
{
"conditions": [
{
"identifiers": [{ "is_built_in_keyboard": true }],
"type": "device_unless"
}
],
"from": { "key_code": "f2" },
"to": [
{
"key_code": "f2",
"modifiers": ["fn"]
}
],
"type": "basic"
},
{
"conditions": [
{
"identifiers": [{ "is_built_in_keyboard": true }],
"type": "device_unless"
}
],
"from": { "key_code": "f3" },
"to": [
{
"key_code": "f3",
"modifiers": ["fn"]
}
],
"type": "basic"
},
{
"conditions": [
{
"identifiers": [{ "is_built_in_keyboard": true }],
"type": "device_unless"
}
],
"from": { "key_code": "f4" },
"to": [
{
"key_code": "f4",
"modifiers": ["fn"]
}
],
"type": "basic"
},
{
"conditions": [
{
"identifiers": [{ "is_built_in_keyboard": true }],
"type": "device_unless"
}
],
"from": { "key_code": "f5" },
"to": [
{
"key_code": "f5",
"modifiers": ["fn"]
}
],
"type": "basic"
},
{
"conditions": [
{
"identifiers": [{ "is_built_in_keyboard": true }],
"type": "device_unless"
}
],
"from": { "key_code": "f6" },
"to": [
{
"key_code": "f6",
"modifiers": ["fn"]
}
],
"type": "basic"
},
{
"conditions": [
{
"identifiers": [{ "is_built_in_keyboard": true }],
"type": "device_unless"
}
],
"from": { "key_code": "f7" },
"to": [
{
"key_code": "f7",
"modifiers": ["fn"]
}
],
"type": "basic"
},
{
"conditions": [
{
"identifiers": [{ "is_built_in_keyboard": true }],
"type": "device_unless"
}
],
"from": { "key_code": "f8" },
"to": [
{
"key_code": "f8",
"modifiers": ["fn"]
}
],
"type": "basic"
},
{
"conditions": [
{
"identifiers": [{ "is_built_in_keyboard": true }],
"type": "device_unless"
}
],
"from": { "key_code": "f9" },
"to": [
{
"key_code": "f9",
"modifiers": ["fn"]
}
],
"type": "basic"
},
{
"conditions": [
{
"identifiers": [{ "is_built_in_keyboard": true }],
"type": "device_unless"
}
],
"from": { "key_code": "f10" },
"to": [
{
"key_code": "f10",
"modifiers": ["fn"]
}
],
"type": "basic"
},
{
"conditions": [
{
"identifiers": [{ "is_built_in_keyboard": true }],
"type": "device_unless"
}
],
"from": { "key_code": "f11" },
"to": [
{
"key_code": "f11",
"modifiers": ["fn"]
}
],
"type": "basic"
},
{
"conditions": [
{
"identifiers": [{ "is_built_in_keyboard": true }],
"type": "device_unless"
}
],
"from": { "key_code": "f12" },
"to": [
{
"key_code": "f12",
"modifiers": ["fn"]
}
],
"type": "basic"
}
]
}
]
}
Loading