Table of Contents
- Charge Limiter
- Microsoft AutoUpdate
- Dock
- Menu Bar
- Brew
- Updating everything Automatically
- Useful Application
- ZSH
- Shortcuts
- The Power of Option key
- Common errors
- General Tips
- Useful Sites
- Other Resources
Charge Limiter
You can use one of these to limit how much your MacBook charges:
Make sure you read the readme file and know what you are doing. In most cases, you don't need this but if you are a pro user, you might like controlling it yourself.
Microsoft AutoUpdate
Disable opening popup every day (source)
sudo plutil -replace StartInterval -integer 864000 /Library/LaunchAgents/com.microsoft.update.agent.plist
sudo plutil -replace RunAtLoad -bool no /Library/LaunchAgents/com.microsoft.update.agent.plist
Check for update manually (source)
/Library/Application\ Support/Microsoft/MAU2.0/Microsoft\ AutoUpdate.app/Contents/MacOS/msupdate -l
Open GUI manually:
/Library/Application\ Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app
Dock
Location of the setting file: /Users/[user-name]/Library/Preference/com.apple.Dock
Parameters description: https://developer.apple.com/documentation/devicemanagement/dock
Lock size of the dock
defaults write com.apple.dock size-immutable -bool true; killall Dock
Lock position of the dock
defaults write com.apple.dock position-immutable -bool true; killall Dock
Add empty item
defaults write com.apple.dock persistent-apps -array-add '{"tile-type"="spacer-tile";}'; killall Dock
Revert to default
defaults delete com.apple.dock; killall Dock
Menu Bar
In order to make it visible even in the fullscreen mode, you can go to System Preferences > Dock and Menu Bar
and uncheck Automatically hide and show the menu bar in full screen
You can also set it individually for each app: (true means it will show it all the time in the fullscreen mode)
defaults write com.example.SomeApp AppleMenuBarVisibleInFullscreen -bool true
💡 If you don’t know the app bundle identifier name, follow the first general tip.
Brew
Get the list of installed packages:
brew leaves
Packages that I like to install:
cocoapods
composer
ffmpeg
gh
jq
openjdk
php
Updating everything Automatically
Brew
brew update && brew upgrade && brew upgrade --cask
Python packages (without package manager)
python3 -m pip install -U pip
pip3 list --outdated --format=json | jq -r '.[] | "\(.name)==\(.latest_version)"' | xargs -n1 pip3 install -U
Check system updates
softwareupdate -l
AppStore installed apps
brew install mas # install
mas outdated # show all the packages that need update
mas upgrade # update all of them
Useful Application
Free/OpenSource:
- Shottr → Screenshot / OCR / Scrolling Screenshot
- AltTab → Window switcher with previews
- Maccy → Clipboard manager
- iTerm2 → Terminal emulator
- LyricsX → Lyrics overly
- HandBrake → Compress and convert video
- AppCleaner → Uninstall apps
- Amphetamine → Energy saver settings
- Karabiner-Elements -> A powerful keyboard customizer
- Yabai -> Tiling window management
- MonitorControl -> Control external display's brightness & volume
- MOS -> Smooth scrolling and set scroll direction
- Raycast -> Better Spotlight
- ImageOptim -> Reduces image file sizes
- DBngin -> Database Version Management Tool
- TablePlus -> Database management
CLI:
Paid:
- BetterTouchTool -> Customize various input devices
- Bartender -> Control and customize menu bar
- Sound Source -> Sound control for apps and 3rd party monitors
- MacUpdater -> Automatically track the latest updates of all applications installed
- Movist -> Better video player
ZSH
Oh My ZSH install
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
Configuration
ZSH_THEME="robbyrussell"
DISABLE_UPDATE_PROMPT="true"
HIST_STAMPS="yyyy/mm/dd"
plugins=(git extract zsh-autosuggestions)
Useful Plugins (all)
# zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions
Shortcuts
- Change volume in small increments:
Shift ⇧ + Option ⌥ (alt) + Volume Up/Down
- Change brightness in small increments:
Shift ⇧ + Option ⌥ (alt) + Brightness Up/Down
- Entering/Exiting fullscreen mode:
fn + F
- Paste without formatting:
Command ⌘ + Option ⌥ (alt) + Shift ⇧ + V
- Permanent deleting a file:
Command ⌘ + Option ⌥ (alt) + Backspace
- Show hidden files in Finder:
Command ⌘ + Shift ⇧ + .
The Power of Option key
Do all of these when holding the Option
key!
- Hit the volume icon to see both input and output
- Hit wifi icon to see every little detail
- Hit menu bar items to see other options
- Hit close window to close all instances of that application
- Right click after you copied something to show
Move item here
instead of paste. - When seeing an image, Click on
File > Save As
while holding the option to convert your image to other formats. When selecting a format, hold the option to see more formats!
Common errors
- App is damaged and can’t be opened. You should move it to the Trash.
sudo xattr -c /Applications/[name].app
General Tips
1- Finding app bundle identifier:
osascript -e 'id of app "TextEdit"'
2- Three-finger drag:
Go to System Preferences > Accessibility > Pointer Control > Trackpad options
and then enable dragging with three finger drag
. Now you can drag any window with three fingers.
3- Change drag & drop speed:
Go to System Preference > Accessibility > Pointer Control
and change Spring-loading delay
.
Useful Sites
- App Icons
- Compatibility of every game on M1
- Sideload iOS apps on macOS
- M1 supported application list
Other Resources
- Defaults Commands
- MacOS Awesome
- Finder Tips
- Jesse Skelto's Karabiner and Yabai tutorials
- devnoname120's macOS setup
- nnja's new computer
Top comments (0)