mirror of
https://github.com/moons-14/dotfiles.git
synced 2026-10-06 06:28:11 +09:00
33 lines
894 B
Nix
33 lines
894 B
Nix
{
|
||
system.keyboard = {
|
||
enableKeyMapping = true;
|
||
userKeyMapping = [
|
||
{
|
||
# Caps Lock → left Command
|
||
HIDKeyboardModifierMappingSrc = 30064771129;
|
||
HIDKeyboardModifierMappingDst = 30064771299;
|
||
}
|
||
];
|
||
};
|
||
|
||
system.defaults = {
|
||
NSGlobalDomain = {
|
||
# Keep editor-friendly key repeat behavior and use F1–F12 directly.
|
||
ApplePressAndHoldEnabled = false;
|
||
InitialKeyRepeat = 15;
|
||
KeyRepeat = 2;
|
||
"com.apple.keyboard.fnState" = true;
|
||
};
|
||
|
||
# These are the standard macOS App Shortcuts for all applications. Keep
|
||
# both English and Japanese menu titles so they work after changing the
|
||
# macOS display language.
|
||
CustomUserPreferences.NSGlobalDomain.NSUserKeyEquivalents = {
|
||
"Close" = "~q";
|
||
"Close Window" = "~q";
|
||
"閉じる" = "~q";
|
||
"ウインドウを閉じる" = "~q";
|
||
};
|
||
};
|
||
}
|