27 lines
691 B
Nix
27 lines
691 B
Nix
{ pkgs, xdg-runtime-dir, emacs, ... }:
|
|
{
|
|
# Swap right keys (command, shift and alt) at login
|
|
launchd.agents.swap-keys = {
|
|
enable = true;
|
|
config = {
|
|
Label = "swap-keys";
|
|
Program = /usr/bin/hidutil;
|
|
ProgramArguments = [
|
|
"property" "--set" ''
|
|
[{
|
|
"HIDKeyboardModifierMappingSrc":0x7000000e7,
|
|
"HIDKeyboardModifierMappingDst":0x7000000e1,
|
|
}, {
|
|
"HIDKeyboardModifierMappingSrc":0x7000000e5,
|
|
"HIDKeyboardModifierMappingDst":0x7000000e6,
|
|
}, {
|
|
"HIDKeyboardModifierMappingSrc":0x7000000e6,
|
|
"HIDKeyboardModifierMappingDst":0x7000000e3,
|
|
}]
|
|
''
|
|
];
|
|
};
|
|
};
|
|
}
|
|
|