Files
2026-07-28 01:01:21 +09:00

33 lines
894 B
Nix
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
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";
};
};
}