From 68d016d03e1c5eb2f9f78b433b29a11706a4b961 Mon Sep 17 00:00:00 2001 From: Adriel Sand Date: Sun, 21 Aug 2022 20:41:50 +0000 Subject: [PATCH] .osx: add swap caps-lock and escape --- .osx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.osx b/.osx index b0c4ad2..f027ef3 100755 --- a/.osx +++ b/.osx @@ -74,6 +74,9 @@ defaults write NSGlobalDomain KeyRepeat -int 1 # Disable auto-correct defaults write NSGlobalDomain NSAutomaticSpellingCorrectionEnabled -bool false +# Swap capslock and escape key +hidutil property --set '{"UserKeyMapping":[{"HIDKeyboardModifierMappingSrc": 0x700000039, "HIDKeyboardModifierMappingDst": 0x700000029}]}' + ############################################################################### # Screen # ###############################################################################