macOS-setup voor power users
Ik heb mijn Mac zo ingesteld dat ik er net zo snel mee kan navigeren en werken als met Linux. De belangrijkste dingen die ik daarvoor heb gedaan zijn:
- Karabiner Elements (uitgebreide uitleg hier)
- Raycast
- Rectangle
Om met de simpelste te beginnen: Rectangle is gewoon mijn vensterbeheerder. Ik gebruik eigenlijk alleen de toetscombinatie left_option + left_control + enter om een venster schermvullend en gecentreerd te maken.
De sleutel hiertoe is om nooit, maar dan ook nooit de bureaubladen of ingebouwde schermvullende modus van macOS te gebruiken. Daardoor wissel je veel trager tussen apps; maak ze gewoon schermvullend en schakel tussen apps met cmd + tab en de sneltoetsen om Raycast te openen.
Het volgende belangrijke onderdeel is Karabiner Elements. Daarmee maak ik van caps lock een hyper key. Ik heb het zo ingesteld dat een tik erop escape indrukt, en dat het in combinatie met een andere toets werkt als control + option + shift + command. Dit is ontzettend krachtig voor navigatie en werk, vooral in combinatie met Raycast.
Ik heb Raycast gekoppeld aan hyper + space (wat eigenlijk caps lock + space is). Als je vervolgens in Raycast naar extensies zoekt en dan naar een app, kun je daarvoor een sneltoets instellen. Die van mij zijn allemaal hyper + iets. Je kunt ze allemaal hier zien.
Supereenvoudige configuraties
Toen ik mijn Mac instelde, heb ik een hoop aangepast voor tmux, Ghostty en Cursor. Ik heb geen van de configuraties gelezen; ik heb gewoon kleine opdrachten voor OpenCode gemaakt en ze door een AI laten schrijven. Ze zijn niet ingewikkeld, maar als je die van mij als referentie wilt:
Ghostty
~/.opencode/command/ghostty.md
---
description: Help make changes to my terminal emulator
agent: build
---
Run "ghostty +show-config --default --docs" to see the full guide on how to configure my terminal emulator Ghostty. In this session I want you to help me get it configured. When I tell you to make a change, reference the docs on how to do it, and then write the changes to: "~/Library/Application Support/com.mitchellh.ghostty/config"Cursor
~/.opencode/command/cursor.md
---
description: Help fine tune my Cursor keybindings
agent: build
---
My Cursor (VSCode) keybindings are located at: "~/Library/Application Support/Cursor/User/keybindings.json". In this session your job is to help me fine tune them.tmux
~/.opencode/command/tmux.md
---
description: Help fine tune tmux config
agent: build
---
My tmux config is located at: ~/.tmux.conf Your job is to make the changes I describe to that config file. Every time you make a change, make sure to end by giving me the command I need to restart my current tmux instance and use the changes immediatelyZet deze er gewoon in, start daarna OpenCode in de hoofdmap en gebruik /tmux om je tmux-configuratie aan te passen, zonder dat je weer moet uitzoeken hoe je nóg een configuratie opzet.