Skip to content

Instantly share code, notes, and snippets.

@markwragg
Last active November 7, 2024 15:35
Show Gist options
  • Save markwragg/d98645aa9ffb74623342cf09cf0c25e6 to your computer and use it in GitHub Desktop.
Save markwragg/d98645aa9ffb74623342cf09cf0c25e6 to your computer and use it in GitHub Desktop.
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. Used to use Smooth Scroll but MOS is free.

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
}

Changes to Windows (BootCamp)

Install the following trackpad driver to have Windows recognise the trackpad as precision:

https://github.com/imbushuo/mac-precision-touchpad

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment