[macbook] install karabiner through nix.
Signed-off-by: Mariano Uvalle <u.g.a.mariano@gmail.com>
This commit is contained in:
parent
8eca1929a0
commit
09312ef3d3
4 changed files with 300 additions and 6 deletions
288
home-modules/explicit-configs/karabiner/karabiner.json
Normal file
288
home-modules/explicit-configs/karabiner/karabiner.json
Normal file
|
|
@ -0,0 +1,288 @@
|
|||
{
|
||||
"profiles": [
|
||||
{
|
||||
"devices": [
|
||||
{
|
||||
"identifiers": { "is_keyboard": true },
|
||||
"simple_modifications": [
|
||||
{
|
||||
"from": { "key_code": "b" },
|
||||
"to": [{ "key_code": "v" }]
|
||||
},
|
||||
{
|
||||
"from": { "key_code": "caps_lock" },
|
||||
"to": [{ "key_code": "left_control" }]
|
||||
},
|
||||
{
|
||||
"from": { "key_code": "d" },
|
||||
"to": [{ "key_code": "s" }]
|
||||
},
|
||||
{
|
||||
"from": { "key_code": "e" },
|
||||
"to": [{ "key_code": "f" }]
|
||||
},
|
||||
{
|
||||
"from": { "key_code": "f" },
|
||||
"to": [{ "key_code": "t" }]
|
||||
},
|
||||
{
|
||||
"from": { "key_code": "h" },
|
||||
"to": [{ "key_code": "m" }]
|
||||
},
|
||||
{
|
||||
"from": { "key_code": "i" },
|
||||
"to": [{ "key_code": "u" }]
|
||||
},
|
||||
{
|
||||
"from": { "key_code": "j" },
|
||||
"to": [{ "key_code": "n" }]
|
||||
},
|
||||
{
|
||||
"from": { "key_code": "k" },
|
||||
"to": [{ "key_code": "e" }]
|
||||
},
|
||||
{
|
||||
"from": { "key_code": "l" },
|
||||
"to": [{ "key_code": "i" }]
|
||||
},
|
||||
{
|
||||
"from": { "key_code": "m" },
|
||||
"to": [{ "key_code": "h" }]
|
||||
},
|
||||
{
|
||||
"from": { "key_code": "n" },
|
||||
"to": [{ "key_code": "k" }]
|
||||
},
|
||||
{
|
||||
"from": { "key_code": "o" },
|
||||
"to": [{ "key_code": "y" }]
|
||||
},
|
||||
{
|
||||
"from": { "key_code": "p" },
|
||||
"to": [{ "key_code": "semicolon" }]
|
||||
},
|
||||
{
|
||||
"from": { "key_code": "r" },
|
||||
"to": [{ "key_code": "p" }]
|
||||
},
|
||||
{
|
||||
"from": { "key_code": "s" },
|
||||
"to": [{ "key_code": "r" }]
|
||||
},
|
||||
{
|
||||
"from": { "key_code": "semicolon" },
|
||||
"to": [{ "key_code": "o" }]
|
||||
},
|
||||
{
|
||||
"from": { "key_code": "t" },
|
||||
"to": [{ "key_code": "b" }]
|
||||
},
|
||||
{
|
||||
"from": { "key_code": "u" },
|
||||
"to": [{ "key_code": "l" }]
|
||||
},
|
||||
{
|
||||
"from": { "key_code": "v" },
|
||||
"to": [{ "key_code": "d" }]
|
||||
},
|
||||
{
|
||||
"from": { "key_code": "y" },
|
||||
"to": [{ "key_code": "j" }]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"identifiers": {
|
||||
"is_keyboard": true,
|
||||
"product_id": 591,
|
||||
"vendor_id": 1452
|
||||
},
|
||||
"simple_modifications": [
|
||||
{
|
||||
"from": { "key_code": "b" },
|
||||
"to": [{ "key_code": "v" }]
|
||||
},
|
||||
{
|
||||
"from": { "key_code": "caps_lock" },
|
||||
"to": [{ "key_code": "left_control" }]
|
||||
},
|
||||
{
|
||||
"from": { "key_code": "d" },
|
||||
"to": [{ "key_code": "s" }]
|
||||
},
|
||||
{
|
||||
"from": { "key_code": "e" },
|
||||
"to": [{ "key_code": "f" }]
|
||||
},
|
||||
{
|
||||
"from": { "key_code": "f" },
|
||||
"to": [{ "key_code": "t" }]
|
||||
},
|
||||
{
|
||||
"from": { "key_code": "h" },
|
||||
"to": [{ "key_code": "m" }]
|
||||
},
|
||||
{
|
||||
"from": { "key_code": "i" },
|
||||
"to": [{ "key_code": "u" }]
|
||||
},
|
||||
{
|
||||
"from": { "key_code": "j" },
|
||||
"to": [{ "key_code": "n" }]
|
||||
},
|
||||
{
|
||||
"from": { "key_code": "k" },
|
||||
"to": [{ "key_code": "e" }]
|
||||
},
|
||||
{
|
||||
"from": { "key_code": "l" },
|
||||
"to": [{ "key_code": "i" }]
|
||||
},
|
||||
{
|
||||
"from": { "key_code": "m" },
|
||||
"to": [{ "key_code": "h" }]
|
||||
},
|
||||
{
|
||||
"from": { "key_code": "n" },
|
||||
"to": [{ "key_code": "k" }]
|
||||
},
|
||||
{
|
||||
"from": { "key_code": "o" },
|
||||
"to": [{ "key_code": "y" }]
|
||||
},
|
||||
{
|
||||
"from": { "key_code": "p" },
|
||||
"to": [{ "key_code": "semicolon" }]
|
||||
},
|
||||
{
|
||||
"from": { "key_code": "r" },
|
||||
"to": [{ "key_code": "p" }]
|
||||
},
|
||||
{
|
||||
"from": { "key_code": "s" },
|
||||
"to": [{ "key_code": "r" }]
|
||||
},
|
||||
{
|
||||
"from": { "key_code": "semicolon" },
|
||||
"to": [{ "key_code": "o" }]
|
||||
},
|
||||
{
|
||||
"from": { "key_code": "t" },
|
||||
"to": [{ "key_code": "b" }]
|
||||
},
|
||||
{
|
||||
"from": { "key_code": "u" },
|
||||
"to": [{ "key_code": "l" }]
|
||||
},
|
||||
{
|
||||
"from": { "key_code": "v" },
|
||||
"to": [{ "key_code": "d" }]
|
||||
},
|
||||
{
|
||||
"from": { "key_code": "y" },
|
||||
"to": [{ "key_code": "j" }]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"identifiers": {
|
||||
"is_keyboard": true,
|
||||
"is_pointing_device": true,
|
||||
"product_id": 591,
|
||||
"vendor_id": 1452
|
||||
},
|
||||
"ignore": false,
|
||||
"simple_modifications": [
|
||||
{
|
||||
"from": { "key_code": "b" },
|
||||
"to": [{ "key_code": "v" }]
|
||||
},
|
||||
{
|
||||
"from": { "key_code": "caps_lock" },
|
||||
"to": [{ "key_code": "left_control" }]
|
||||
},
|
||||
{
|
||||
"from": { "key_code": "d" },
|
||||
"to": [{ "key_code": "s" }]
|
||||
},
|
||||
{
|
||||
"from": { "key_code": "e" },
|
||||
"to": [{ "key_code": "f" }]
|
||||
},
|
||||
{
|
||||
"from": { "key_code": "f" },
|
||||
"to": [{ "key_code": "t" }]
|
||||
},
|
||||
{
|
||||
"from": { "key_code": "h" },
|
||||
"to": [{ "key_code": "m" }]
|
||||
},
|
||||
{
|
||||
"from": { "key_code": "i" },
|
||||
"to": [{ "key_code": "u" }]
|
||||
},
|
||||
{
|
||||
"from": { "key_code": "j" },
|
||||
"to": [{ "key_code": "n" }]
|
||||
},
|
||||
{
|
||||
"from": { "key_code": "k" },
|
||||
"to": [{ "key_code": "e" }]
|
||||
},
|
||||
{
|
||||
"from": { "key_code": "l" },
|
||||
"to": [{ "key_code": "i" }]
|
||||
},
|
||||
{
|
||||
"from": { "key_code": "m" },
|
||||
"to": [{ "key_code": "h" }]
|
||||
},
|
||||
{
|
||||
"from": { "key_code": "n" },
|
||||
"to": [{ "key_code": "k" }]
|
||||
},
|
||||
{
|
||||
"from": { "key_code": "o" },
|
||||
"to": [{ "key_code": "y" }]
|
||||
},
|
||||
{
|
||||
"from": { "key_code": "p" },
|
||||
"to": [{ "key_code": "semicolon" }]
|
||||
},
|
||||
{
|
||||
"from": { "key_code": "r" },
|
||||
"to": [{ "key_code": "p" }]
|
||||
},
|
||||
{
|
||||
"from": { "key_code": "s" },
|
||||
"to": [{ "key_code": "r" }]
|
||||
},
|
||||
{
|
||||
"from": { "key_code": "semicolon" },
|
||||
"to": [{ "key_code": "o" }]
|
||||
},
|
||||
{
|
||||
"from": { "key_code": "t" },
|
||||
"to": [{ "key_code": "b" }]
|
||||
},
|
||||
{
|
||||
"from": { "key_code": "u" },
|
||||
"to": [{ "key_code": "l" }]
|
||||
},
|
||||
{
|
||||
"from": { "key_code": "v" },
|
||||
"to": [{ "key_code": "d" }]
|
||||
},
|
||||
{
|
||||
"from": { "key_code": "y" },
|
||||
"to": [{ "key_code": "j" }]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"name": "Default profile",
|
||||
"selected": true,
|
||||
"virtual_hid_keyboard": { "keyboard_type_v2": "ansi" }
|
||||
}
|
||||
]
|
||||
}
|
||||
5
home-modules/karabiner.nix
Normal file
5
home-modules/karabiner.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{ ... }: {
|
||||
home.file.".config/karabiner/karabiner.json" = {
|
||||
source = ./explicit-configs/karabiner/karabiner.json;
|
||||
};
|
||||
}
|
||||
|
|
@ -29,6 +29,7 @@
|
|||
"secretive"
|
||||
"gcc-arm-embedded"
|
||||
"librewolf"
|
||||
"karabiner-elements"
|
||||
];
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -6,14 +6,14 @@
|
|||
} : {
|
||||
|
||||
imports = [
|
||||
../../home-modules/tmux.nix
|
||||
../../home-modules/lazygit.nix
|
||||
../../home-modules/zsh.nix
|
||||
../../home-modules/starship.nix
|
||||
../../home-modules/nvim.nix
|
||||
../../home-modules/direnv.nix
|
||||
# I should update the module with an option for adding winodow decorations.
|
||||
../../home-modules/ghostty-config.nix
|
||||
../../home-modules/karabiner.nix
|
||||
../../home-modules/lazygit.nix
|
||||
../../home-modules/nvim.nix
|
||||
../../home-modules/starship.nix
|
||||
../../home-modules/tmux.nix
|
||||
../../home-modules/zsh.nix
|
||||
];
|
||||
|
||||
ghostty = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue