Skip to content

Instantly share code, notes, and snippets.

@glebm
Last active April 29, 2024 03:32
Show Gist options
  • Save glebm/b5f3e5cc72a125ad8c38f4896e9e7d3e to your computer and use it in GitHub Desktop.
Save glebm/b5f3e5cc72a125ad8c38f4896e9e7d3e to your computer and use it in GitHub Desktop.
MSI Prestige 16 AI Studio input-remapper config for Fn+Left/Right/Up/Down -> Home/End/PageUp/PageDown
[
{
"input_combination": [
{
"type": 1,
"code": 464,
"origin_hash": "121bafca5e72bccfe428d54bfef7c15e"
},
{
"type": 1,
"code": 105,
"origin_hash": "121bafca5e72bccfe428d54bfef7c15e"
}
],
"target_uinput": "keyboard",
"output_symbol": "KEY_HOME",
"name": "Fn+Left -> Home",
"mapping_type": "key_macro"
},
{
"input_combination": [
{
"type": 1,
"code": 464,
"origin_hash": "121bafca5e72bccfe428d54bfef7c15e"
},
{
"type": 1,
"code": 106,
"origin_hash": "121bafca5e72bccfe428d54bfef7c15e"
}
],
"target_uinput": "keyboard",
"output_symbol": "KEY_END",
"name": "Fn+Right -> End",
"mapping_type": "key_macro"
},
{
"input_combination": [
{
"type": 1,
"code": 464,
"origin_hash": "121bafca5e72bccfe428d54bfef7c15e"
},
{
"type": 1,
"code": 103,
"origin_hash": "121bafca5e72bccfe428d54bfef7c15e"
}
],
"target_uinput": "keyboard",
"output_symbol": "KEY_PAGEUP",
"name": "Fn+Up -> PageUp",
"mapping_type": "key_macro"
},
{
"input_combination": [
{
"type": 1,
"code": 464,
"origin_hash": "121bafca5e72bccfe428d54bfef7c15e"
},
{
"type": 1,
"code": 108,
"origin_hash": "121bafca5e72bccfe428d54bfef7c15e"
}
],
"target_uinput": "keyboard",
"output_symbol": "KEY_PAGEDOWN",
"name": "Fn+Down -> PageDown",
"mapping_type": "key_macro"
}
]
[Unit]
Description=Call setkeycodes to assign Fn key
[Service]
Type=simple
User=root
ExecStart=setkeycodes 0xc0 0x1d0
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment