From 03cf93f810526ea11f4f5a928cc68be19b9298e2 Mon Sep 17 00:00:00 2001 From: Jeremy Kaplan Date: Sun, 30 Aug 2026 13:23:41 -0400 Subject: [PATCH] macos: Set key repeat settings on install --- darwin.conf.yaml | 4 ++++ macos/key-repeat | 6 ++++++ 2 files changed, 10 insertions(+) create mode 100755 macos/key-repeat diff --git a/darwin.conf.yaml b/darwin.conf.yaml index e62d274..2dc03f7 100644 --- a/darwin.conf.yaml +++ b/darwin.conf.yaml @@ -3,6 +3,10 @@ stdout: true stderr: true quiet: false + - command: macos/key-repeat + stdout: true + stderr: true + quiet: false - link: ./git/config-os: git/config-darwin diff --git a/macos/key-repeat b/macos/key-repeat new file mode 100755 index 0000000..ca122ec --- /dev/null +++ b/macos/key-repeat @@ -0,0 +1,6 @@ +#!/usr/bin/env bash + +set -exuo pipefail + +defaults write -g InitialKeyRepeat -float 13.333 # ~200 ms, GUI minimum is 15 = 225 ms +defaults write -g KeyRepeat -int 1 # 15 ms/char, GUI minimum is 2 = 30 ms/ch