Skip to content

Instantly share code, notes, and snippets.

@RhubarbSin
Last active January 3, 2025 22:37
Show Gist options
  • Save RhubarbSin/346f02883a3f9cafc90460a53c010083 to your computer and use it in GitHub Desktop.
Save RhubarbSin/346f02883a3f9cafc90460a53c010083 to your computer and use it in GitHub Desktop.
macOS Notes

macOS Notes

Configure macOS dock animation

  • Increase speed of dock animation
    defaults write com.apple.dock autohide-time-modifier -float 0.4; killall Dock
        
  • Remove dock animation
    defaults write com.apple.dock autohide-time-modifier -int 0; killall Dock
        
  • Restore default dock animation
    defaults delete com.apple.dock autohide-time-modifier; killall Dock
        
  • Remove autohide delay
    defaults write com.apple.dock autohide-delay -float 0; killall Dock
        
  • Restore default autohide delay
    defaults delete com.apple.dock autohide-delay; killall Dock
        

Prevent macOS from reading .DS_Store files on external filesystems

defaults write com.apple.desktopservices DSDontWriteUSBStores true
defaults write com.apple.desktopservices DSDontWriteNetworkStores true

Change return to control with Karabiner-Elements complex modifications

{
    "description": "Change return to control if pressed with other keys, to return if pressed alone",
    "manipulators": [
        {
            "from": {
                "key_code": "return_or_enter",
                "modifiers": {
                    "optional": [
                        "any"
                    ]
                }
            },
            "to": [
                {
                    "key_code": "right_control"
                }
            ],
            "to_if_alone": [
                {
                    "key_code": "return_or_enter"
                }
            ],
            "type": "basic"
        }
    ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment