Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quirks with automating macOS Sonoma #210

Open
4 of 8 tasks
geerlingguy opened this issue Nov 12, 2024 · 9 comments
Open
4 of 8 tasks

Quirks with automating macOS Sonoma #210

geerlingguy opened this issue Nov 12, 2024 · 9 comments

Comments

@geerlingguy
Copy link
Owner

geerlingguy commented Nov 12, 2024

I decided to finally upgrade to Sonoma, since I'm also adding on an M4 Mac mini... therefore I will document any weird problems I find in this project and try to resolve them in this issue.

@geerlingguy
Copy link
Owner Author

Surprisingly, very few things failed. Dock resizing seems not to work, and a couple apps were missing as I did the thing in the wrong order the first time.

@geerlingguy
Copy link
Owner Author

geerlingguy commented Nov 12, 2024

In my .osx file, I have:

# Disable press-and-hold for keys in favor of key repeat
defaults write NSGlobalDomain ApplePressAndHoldEnabled -bool false

# Set a blazingly fast keyboard repeat rate, and make it happen more quickly.
# (The KeyRepeat option requires logging out and back in to take effect.)
defaults write NSGlobalDomain InitialKeyRepeat -int 20
defaults write NSGlobalDomain KeyRepeat -int 1

I do this because I often like to 'scroll' with just the down arrow or keys in Vim quickly, without going a page at a time. The fastest I can go using macOS's built-in slider is not very fast (for me).

Those settings don't seem to do anything in Sonoma, see Did we lose key repeat in Sonoma?.

@geerlingguy
Copy link
Owner Author

Also, for some uses, Terminal really needs to have full disk access:

Inside "Privacy & Security" > "Full Disk Access", enable 'Terminal'

I don't know if I'm going to recommend that as a default though.

@geerlingguy
Copy link
Owner Author

geerlingguy commented Nov 12, 2024

It looks like the key repeat stuff might be under com.apple.Accessibililty now:

********* READING DEFAULT DOMAIN com.apple.Accessibility **********

{
    AXSClassicInvertColorsPreference = 0;
    ApplicationAccessibilityEnabled = 0;
    AutomationEnabled = 0;
    BrailleInputDeviceConnected = 0;
    CommandAndControlEnabled = 0;
    DarkenSystemColors = 0;
    DifferentiateWithoutColor = 0;
    EnhancedBackgroundContrastEnabled = 1;
    FullKeyboardAccessEnabled = 0;
    FullKeyboardAccessFocusRingEnabled = 1;
    GenericAccessibilityClientEnabled = 0;
    GrayscaleDisplay = 0;
    InvertColorsEnabled = 0;
    KeyRepeatDelay = "0.5";
    KeyRepeatEnabled = 1;
    KeyRepeatInterval = "0.083333333";
    ReduceMotionEnabled = 0;
    SpeakThisEnabled = 0;
    VoiceOverTouchEnabled = 0;
}

Debugged with:

for i in `defaults domains | tr ',' '\n'`; do echo "********* READING DEFAULT DOMAIN $i **********"; echo; defaults read $i; done

I'm going to test the following and log out and log back in to see if it takes:

defaults write com.apple.Accessibility KeyRepeatDelay -float 0.1
defaults write com.apple.Accessibility KeyRepeatInterval -float 0.001

@geerlingguy
Copy link
Owner Author

Nope... looks like those values were set back to 0.5 and 0.083333333, respectively :(

@geerlingguy
Copy link
Owner Author

Also started getting very annoyed that if I clicked on the desktop, all my windows would fly away. Apparently there's some silly default for that in Sonoma. Luckily disabling it is as simple as:

defaults write com.apple.WindowManager EnableStandardClickToShowDesktop -bool false

@geerlingguy
Copy link
Owner Author

geerlingguy commented Nov 12, 2024

For Dock resizing, this works:

defaults write com.apple.dock tilesize -int 30; killall Dock

The int is the dimension of icons in the Dock.

Edit: That's... apparently in the .osx file already, so maybe it was just errored out on first run.

@geerlingguy geerlingguy changed the title The macOS Sonoma issue Quirks with automating macOS Sonoma Nov 12, 2024
@geerlingguy
Copy link
Owner Author

The worst thing running Sequoia a few days: autocorrect is still autocorrecting / switching suggestions even though I thought I disabled it in System Preferences!

Screenshot 2024-11-20 at 10 35 52 PM

Example of frustration:

typing words

@geerlingguy
Copy link
Owner Author

Apparently as suggested on X, "turning it on and off again" worked, lol.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant