- Two-finger click on touch pad is right-click. Or ctrl+touch pad or ctrl+mouse click.
- To have switching with
alt+taband window previews, installbrew install --cask alt-tab. You may need to change in settingsalt+tabtoShow windows from applications: All apps. I also like to hide all app windows (cmd+h) or minimize one app window (cmd+m) and have AltTab do now show them. For that change inAltTab > Settings > Controls > Show minimized windows: Hide, Show hidden windows: Hide. Sometimes AltTab does now show preview for some window. In that case reopen AltTab. - To have fast switching between full screen windows: don't full screen and just auto hide top bar instead:
System Settings > Control Center > Automatically hide and show the menu bar: Always. AlsoSystem Settings > Wallpaper > Colors: blackor set image with black at the top. You may also auto hide dock. One downside if you move mouse to top bar and click to fast, you will show desktop instead. There is some possibility for fast switching with full screen windows with https://github.com/koekeishiya/yabai but is hacky. - Install https://brew.sh. Disable quarantine with
export HOMEBREW_CASK_OPTS=--no-quarantinein~/.zshrclink. To upgrade packages without asking for root password many times brew-upgrade. To list brew packages brew-packages. - Finder (Mac OS file explorer):
enterto renamecmd+upto go parent dircmd+downto go to child dircmd+ccopies.cmd+vpastes copy. To cut and paste, copy first but paste withoption+cmd+vcmd+zto undo operation like delete, rename etc.cmd+shift+zto redo operation.- Enable status bar. Then you will be able to right-click on bread crumb and choose
Services > New Ghostty tab here - To toggle hidden files
cmd+shift+,or commanddefaults write com.apple.finder AppleShowAllFiles YES. - You cannot close Finder (be default). Only close windows with
cmd+w. - To set association of some file extension with some program:
right-click file > Get Info > Open with: select app > Change all.... - To search current folder always:
Settings > Advanced > When performing a search: Search the Current Folder - Show file extensions:
Settings > Advanced > Show all file extensions - To delete file
cmd+backspace - To add Bin to sidebar
ctrl+cmd+torFile > Add to Sidebar. Then you cancmd+clicklink in sidebar to open in new tab. Helps when emptying Bin and Finder tab is closed automatically. - To open new tab
cmd+tab - To set location
cmd+shift+g - To preview file, press
space - To select multiple files one-by-one:
cmd+click. To select from-to:shift+clickbut does not work in Icon view - drag with mouse then.
- To open multiple images in full screen like slideshow in Preview app: select multiple images in Finder with with
cmdorshift. Then presscmd+down. Sometimes it will open them in multiple windows :(. In that case just retry. - Text cursor shortcut for: home
ctrl+a, endctrl+e. Like in Emacs. End of filecmd+down. Beginning of filecmd+up. - To maximize window: some apps like Google Chrome support maximizing by double-clicking title bar. If not, double-click corner with
optionkey. Or installbrew install --cask rectangleandctrl+opt+enter. - For calendar in menu bar like in Windows, install https://github.com/pakerwreah/Calendr. The best menu bar calendar app I have found, but recently it closes and I need to reopen it manually.
- For transient prompt https://formulae.brew.sh/formula/oh-my-posh and https://github.com/rofrol/dotfiles/blob/master/.config/oh-my-posh/themes/rofrol.omp.json.
- To toggle internal display when external connected with shortcut: install https://formulae.brew.sh/cask/betterdisplay (paid app). Then in
Keyboard > Keyboard shorcuts > Display connection > Toggle built-in display: shift+cmd+7. Alternatively you canbrew install --cask monitorcontroland decrease brightness with slider which appear after clicking monitor control icon. - Menu bar: after installing
brew install --cask stats, you may wish to decrease spacing between widgets with https://sindresorhus.com/menu-bar-spacing. More https://apple.stackexchange.com/questions/406316/can-the-spacing-of-menu-bar-apps-be-modified-in-macos-big-sur-and-later. To rearrange items in menu bar, usecmd+mouse drag. - To add action to finder in Services, for example: https://github.com/rofrol/dotfiles/blob/master/scripts/subtitles_encoding_and_line_ending.sh
- For advanced shortcuts:
brew install --cask karabiner-elements. For example https://github.com/rofrol/dotfiles/blob/master/.config/karabiner/karabiner.json#L334 - Similar to WinDirStat
brew install --cask disk-inventory-xorbrew install --cask qdirstat. - Extract archives like rar, 7z
brew install --cask the-unarchiver. - Torrents
brew install --cask qbittorrent. - For playing movies
brew install --cask iina. IINA, unlike mpv, allows displaying two subtitles at the same time. Primary subtitles at the bottom, secondary at the top. IINA, also unlike MPV, show thumbnails when you hover on scrollbar. If IINA crashes, you may want to install https://nightly.link/mpv-player/mpv/workflows/build/master. If macos blocks mpv, go to point 34. - For subtitles https://qnapi.github.io/. Some subtitle files may have extension txt but inside it is srt. So just change extension to srt. Sometimes file may have txt extension but IINA cannot open it. Try to disabling subtitles post-processing in qnapi settings for that file. Or the file can have wrong encoding, file format. Fix it with
subtitles_encoding_and_line_ending.shfrom above. You may need to sync subtitles to video withbrew install alasslikealass-cli en.srt pl.srt out.srt. If alass does not alight subtitles correctly, check if there is some line at the beggining inen.srtthat is not inpl.srt, and vice-versa. You may remove such line with Jubler:brew install --cask jubler. If English subtitles are embedded in mkv file: installbrew install mkvtoolnix. Thenmkvinfo *.mkv | lessandmkvextract tracks *.mkv 3:en.srt. If mkvinfo shows for subtitles: Codec ID: S_HDMV/PGS, change extension tosupand convert to srt with https://pgs-to-srt.com/. If it showsS_VOBSUB:mkvextract tracks file.mkv 3:track3will producetrack3.idxandtrack3.sub. Convert to srt with https://subtitletools.com or https://gotranscript.com/subtitle-converter. To translate srt subtitles to another language use https://translatesubtitles.co/. To convert from sub to srt subtitles:ffmpeg -i input.sub output.srt. You may first install itbrew install ffmpeg. Sometimes character encoding for polish characters is broken, but can be fixed with https://github.com/rofrol/fix_polish_characters. - To merge pdf files into one: select them in Finder, right-click and
Quick Actions > Create PDF. To extract pages, installbrew install qpdfand thenqpdf --empty --pages infile.pdf 1-5 -- outfile.pdflink. - Create folder with selected files in Finder: right-click and
New Folder with Selection. - Deleting app by dragging it to Bin or
cmd+backspace. Or better usebrew uninstall. - zsh: to set environment variable for some GUI app like Emacs.app, you need to put it in
~/.zshrc, not~/.zprofile. - To install older driver, i.e. for hp printer, use
brew install --cask pacifist. Example https://github.com/kisswiki/kisswiki/blob/master/src/os/macos/printer_hp_laserjet_p1102.md - To show all app icons: pinch with 4 fingers on touchpad. You can also add shortcut for this to
cmd+spaceinSettings > Keyboard > Keyboard Shorcuts... > Launchpad & Dock > Show Launchpadand disablecmd+spacefor Spotlight inSettings > Keyboard > Keyboard Shorcuts... > Spotlight. That way you can disable completely spotlight indexing service https://apple.stackexchange.com/questions/265749/what-is-spotlight-indexing-and-should-i-turn-it-off. - To make screenshot: whole screen
cmd+shift+3, selected rectanglecmd+shift+4, UIcmd+shit+5.To change screenshots locationcmd+shift+5 > Options > Select directory. - If Mac OS prevents you opening downloaded app, try
right-click > Open. - For terminal, install
brew install --cask ghostty. It allows to have different font-size per split. To enter polish characters likełwithalt+l, in Ghostty configmacos-option-as-alt = left. Also use Karabiner to switch right cmd with right option for entering polish characters like on Windows. - To have
cmd+spacesearch only for apps:Macos > System Settings > Spotlight > Search results > check only Applications. - Games:
brew install --cask steam,brew install --cask porting-kit,brew install --cask heroic. https://github.com/AndreRH/hangover. https://git.ryujinx.app/ryubing/ryujinx. https://github.com/Kegworks-App/Kegworks. - Lightweight docker desktop alternative
brew install --cask orbstack(paid). - Show all windows: swipe up with 3 fingers. Or
ctrl+up. To show only single app windows:ctrl+down. You can change it inSettings > Desktop and Dock > ShorctusorSettings > Keyboard > Keyboard Shorcuts... > Mission Control. - To disable hot corners go to
Settings > Desktop and Dock > Hot Corners. - If you cannot open some file, like rar, you need to run
xattr -d com.apple.quarantine <file>. Also you can make quick action with:Automator > Quick Action > Workflow receives current: files or folders, in: Finder.app, on the left search for "Run Shell Script" and drag-and-drop it to the right. Pass input: as arguments. Content of script: xattr -d com.apple.quarantine "$@". Save is as unquarantine. ThenFinder > right-click on file > Quick Actions > unquarantine. https://www.reddit.com/r/MacOS/comments/1kbvsse/cant_open_rar_files_after_update_to_1541/ Instead of Quick Action, you may go toSystem Settings > Privacy & Security > Scroll down to Security > enable blocked app System Settings > Accessibility > Display > Reduce transparency- Firefox and yt-dlp integration: install https://addons.mozilla.org/en-US/firefox/addon/external-application/. Then install
node.js. Thennpm install --global native-client. InExternal Application Buttonoptions, add new application. Executable Name:/Applications/Ghostty.app/Contents/MacOS/ghostty. Arguments:-e /opt/homebrew/bin/yt-dlp --ffmpeg-location /opt/homebrew/bin/ffmpeg "[HREF]" - Record screen with OBS
brew install --cask obs. Show keys with KeyCastrbrew install --cask keycastrlink - terminal session history
brew install atuin. - Color picker
brew install --cask pika.Pika > Settings > Color Format > sRGB IEC61966-2.1for correct colors.
I will bookmark this!