Skip to content

Instantly share code, notes, and snippets.

@markwragg markwragg/mactweaks.md

Last active Mar 16, 2020
Embed
What would you like to do?
Mac tweaks

Changes to my Mac

Turn off "press and hold" for foreign letters, allowing you to then press and hold for repeat letters. Open Terminal and run:

defaults write NSGlobalDomain ApplePressAndHoldEnabled -bool false

Then you need to close/reopen any app before it takes effect.

Make the dock appear faster when using auto hide:

defaults write com.apple.dock autohide-delay -float 0
killall dock

Make scrolling with a mouse smoother:

This app also lets you reverse the direction of the scroll wheel on the mouse without changing the scroll direction of the touch pad.

Allow windows to snap to sides or fill screen:

Install iTerm2:

  • https://www.iterm2.com/

  • Download Atom colour scheme and import

  • Downlod Monoid from Nerdfonts and install

  • Add keyboard shortcuts:

    • ESC to send hex code 0x15 <-- delete whole line
    • Command -> to send hex code 0x05
    • Command <- to send hex code 0x01 (move to beginning/end of line)
    • Pointer > Right click > Paste from clipboard

Enable case insensitve autocomplete:

echo "set completion-ignore-case On" >> ~/.inputrc

Enable keyboard shortcuts

Under keyboard > shortcuts > app shortcuts create:

  • Cut: CTRL+X
  • Copy: CTRL+C
  • Paste: CTRL+V
  • Lock Screen: CMD+L

Install British PC 105 ALT keyboard map:

To put , `, ", @ and # in their place.

Remap Home and End keys so they work on a line basis like on Windows:

  • Create ~/Library/KeyBindings dir if it doesn't exist.
  • Create DefaultKeyBindings.dict with the following content:
{
    "\UF729"  = moveToBeginningOfLine:; // home
    "\UF72B"  = moveToEndOfLine:; // end
    "$\UF729" = moveToBeginningOfLineAndModifySelection:; // shift-home
    "$\UF72B" = moveToEndOfLineAndModifySelection:; // shift-end
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.