Skip to content

Commit

Permalink
fix: update setup
Browse files Browse the repository at this point in the history
  • Loading branch information
posaune0423 committed Jan 6, 2025
1 parent 95f2bd8 commit c6206da
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 28 deletions.
39 changes: 26 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,32 @@ I hope this would help somebody trying to automate setup of OSX environment in s

## What this setting covers

### Applications

#### Editor

- [Cursor](https://www.cursor.com/)

#### Terminal

- [Ghostty](https://ghostty.org/)

#### Browser

- [Zen Browser](https://zen-browser.app/)

#### Other

- google-japanese-ime
- google-chrome
- slack
- zoom
- alfred
- spectacle

- docker
- monitorcontrol

### OS Settings

- Enable dark mode
Expand Down Expand Up @@ -46,19 +72,6 @@ I hope this would help somebody trying to automate setup of OSX environment in s
- bash
- protobuf

### Application

- google-japanese-ime
- google-chrome
- slack
- zoom
- alfred
- spectacle
- wezterm
- cursor
- docker
- monitorcontrol

## Usage

```bash
Expand Down
18 changes: 3 additions & 15 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,20 +46,6 @@ defaults write NSGlobalDomain KeyRepeat -int 2
defaults write NSGlobalDomain InitialKeyRepeat -int 15
check_status "Keyboard settings"

# Swap semicolon and colon
if [ ! -d ~/Library/KeyBindings ]; then
mkdir -p ~/Library/KeyBindings
fi

cat >~/Library/KeyBindings/DefaultKeyBinding.dict <<EOF
{
"$\U003B" = ("insertText:", ":");
"~$\U003B" = ("insertText:", ";");
}
EOF

check_status "Keyboard settings and key swap"

# CapsLock to Control
for keyboard_id in $(ioreg -c AppleEmbeddedKeyboard -r | grep -Eiw "VendorID|ProductID" | awk '{ print $4 }' | paste -s -d'-\n' -)-0; do
defaults -currentHost write -g com.apple.keyboard.modifiermapping.${keyboard_id} -array-add "
Expand Down Expand Up @@ -190,7 +176,9 @@ gui_apps=(
"discord"
"alfred"
"spectacle"
"wezterm"
"ghostty"
"zen-browser"
"karabiner-elements"
"cursor"
"docker"
"monitorcontrol"
Expand Down

0 comments on commit c6206da

Please sign in to comment.