Remap keys on German keyboard
This commit is contained in:
23
flake.nix
23
flake.nix
@@ -58,6 +58,29 @@
|
||||
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
programs.vscode.enable = true;
|
||||
|
||||
launchd.agents.keyboard-remap = {
|
||||
# Remap top-left key (paragraph) to backquote and backslash like
|
||||
# proper ISO keyboard does, and the key right to the LShift to
|
||||
# Shift.
|
||||
enable = true;
|
||||
config = {
|
||||
Label = "com.user.keyboard-remap";
|
||||
ProgramArguments = [
|
||||
"/usr/bin/hidutil"
|
||||
"property"
|
||||
"--set"
|
||||
''
|
||||
{"UserKeyMapping":
|
||||
[
|
||||
{"HIDKeyboardModifierMappingSrc":0x700000035, "HIDKeyboardModifierMappingDst":0x7000000e1},
|
||||
{"HIDKeyboardModifierMappingSrc":0x700000064, "HIDKeyboardModifierMappingDst":0x700000035},
|
||||
]
|
||||
}''
|
||||
];
|
||||
RunAtLoad = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
)
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user