Skip to content

zloo/unfuck-osx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 

Repository files navigation

HOW TO UNFUCK OSX

Unfuck Keyboard:

  1. Set function keys as default instead of the stupid bullshit keys https://support.apple.com/en-us/102439
  2. Use English ABC layout for english keyboard, all the others are fucked beyong repair
    • Use Karabiner - https://karabiner-elements.pqrs.org/ - to fix the backtick/tilde key to actually type backtick/tilde. For this download predefined rule "Remap section sign from British Keyboard to US's backtick + plusminus to tilde"
  3. Install PC-Style shortcuts to Karabiner Elements: https://ke-complex-modifications.pqrs.org/?q=home%20end
    • You can then selectively enable/disable these modifications. It makes HOME/END do beginning/end of line, like a normal OS.

Unfuck Touchpad:

  1. Enable "touch to click" so you won't have to push through the touchpad for every click: Apple logo in top left corner, system settings, trackpad, enable Tap to click.
  2. Install https://github.com/artginzburg/MiddleClick-Sonoma to emulate middle-click with three (or more) fingers tap both on touchpad and Magic Mouse.

Unfuck mice:

  1. There's a tool for that: https://github.com/ther0n/unnaturalscrollwheels - it allows:
  • Inverting horizontal/vertical scrolling
  • Disabling scroll acceleration
  • Disabling mouse acceleration

Unfuck display resolution - maybe this is only an issue with 14" Mac but if you don't like one of the few "clear" display resolutions and the other ones are kinda blurry, there is a solution:

  1. Install https://github.com/waydabber/BetterDisplay - It's a paid tool (pro version) but you can use two weeks trial period and there is a non-pro feature you can use to unfuck the display resolution.
  2. In the settings turn these options on:
    • Edit the system configuration of this display model
    • Enable flexible scaling
  3. Go to your Mac's Displays settings and pick a few resolutions you'll want to use, note them down.
  4. Go back to BetterDisplay settings and add these into "Custom scaled resolutions" in "Flexible scaling options".
  5. Apply the changes.

Turn off the fucked startup sound:

  1. Click apple icon, System Settings, Sound, Play sound on Startup

Make fucking Apple Music not turn on every time you put on your BT headphones which issue a "resume" command

  1. Download and install https://github.com/tombonez/noTunes and set it up to autostart after boot
  2. This issue only seems to appear after booting. If you manually play something on Spotify, the fucking OSX seems to magically remember you want to use Spotify. If you quit the Spotify app, the fucked behavior returns.. There is no known safe way to REMOVE apple music.

Setup proper environment similar to Linux:

  1. Install iTerm2
  • Configure the Iterm2 / Settings / General / Closing / Quit when all windows are closed. This will close the iTerm2 application so that when you close all the terminal windows, the application will no longer appear in the alt-tab menu option which does NOTHING when you pick it.
  1. Install homebrew - follow the guide in here: https://brew.sh/
  2. Install basic packages: brew install bash coreutils gsed mc
  3. Set up your .bash_profile (check the file in this repo for inspiration or as a default). BEWARE, macos doesn't use .bashrc, you need to use .bash_profile
  4. Set Bash from Homebrew as your default shell:
  • sudo sh -c 'echo /opt/homebrew/bin/bash >> /etc/shells'
  • chsh -s /opt/homebrew/bin/bash
  1. Setup your gitconfig, i.e.
[user]
	email = personal@gmail.com
	name = My Name
[core]
	excludesfile = /Users/<username>/.gitignore_global
[includeIf "gitdir:/Users/<username>/git/work/"]
	path = /Users/<username>/.gitconfig-work
[includeIf "gitdir:/Users/<username>/git/personal/"]
	path = /Users/personal/.gitconfig-personal
[push]
	autoSetupRemote = true
[user]
	name = My Work Name
	email = myworkname@work.com
[core]
	sshCommand = ssh -i /Users/<username>/.ssh/id_ed25519_work -o IdentitiesOnly=yes

Some useful oneliners:

# Unhide Library folder
chflags nohidden "${HOME}/Library/"

# Set login message
sudo defaults write /Library/Preferences/com.apple.loginwindow LoginwindowText 'your@email \u2022 +420-XXX-YYY-ZZZ'

# Expand Save dialog by default
defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode -bool true

# Expand print panel by default
defaults write NSGlobalDomain PMPrintingExpandedStateForPrint -bool true

# Save screenshots in PNG
defaults write com.apple.screencapture type -string "png"
defaults write com.apple.screencapture location -string "${HOME}/Downloads"

# Delete unavailable simulators from XCode
xcrun simctl delete unavailable

function wifi_name {
        /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -I | \
            awk '/ SSID/ { print $2 }'
    }

alias ldd='otool -L'

alias lockscreen='/System/Library/CoreServices/Menu\ Extras/User.menu/Contents/Resources/CGSession -suspend'

alias plview='plutil -convert xml1 -o -'

alias ql='qlmanage -p'

alias sshot='screencapture -t png -ix ${HOME}/Downloads/sshot.png && ql ${HOME}/Downloads/sshot.png 2>/dev/null'

alias lsusb='system_profiler SPUSBDataType'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages